Test your basic knowledge |

Oracle SQL

Subjects : oracle, it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Explain how Substitution Variables are used when writing scripts.






2. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.






3. A calculation with a null always yields...






4. The _______ operator determines common rows.






5. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table






6. Converting a text literal to DATE format requires the use of the...






7. It is considered good form to put all SQL commands in...






8. The TRUNC function on a date without a format model truncates the timestamp to...






9. What is the first column of a composite index called?






10. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.






11. You can use the ________________ to subtract months from a given date.






12. You use the _________ keyword to add columns or constraints to a table.






13. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.






14. Explain how the SPOOL command is used and what program it can be used in.






15. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.






16. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.






17. The ______ depicts the M of a 1:M relationship.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


18. The _______ function adds values together for a group of rows.






19. To equijoin a table with another table involves matching the...






20. You use the __________ keyword to change characteristics of a column.






21. Dynamic views begin with a ___________.






22. Subqueries can return...






23. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.






24. In a view you can give a column a different name than it has in the...






25. Write a statement for SQL*Plus that shows the dictionary.






26. Write a solution that adds 20 minutes to a given date.






27. What are the main components of a ROWID?






28. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?






29. What is the data type you can use if you need an unlimited number of textual characters?






30. The RTRIM function is useful for eliminating ________ in a string.






31. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.






32. The COUNT function is useful for determining whether a table has...






33. Write the syntax to rename index just_two_more_weeks_i to finally_i






34. The _______ function lets you perform if-then-else functionality with the SQL language.






35. The using clause of the ANSI join syntax always assumes an...






36. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.






37. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.






38. Queries that are found in parentheses are done first - just as in the order of operations when doing...






39. Oracle uses the outer join operator to indicate that nulls are shown for...






40. _________________ relationships are always optional relationships.






41. LINESIZE






42. What does the following function return? SELECT LENGTH(NULL) - FROM dual






43. Write a statement that drops the index need_to_pass_i






44. Joins involving multiple columns must always follow the ____________ relationship path.






45. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...






46. Explain the steps needed to run a script in SQL Developer






47. Explain in detail the impact of INDEXES and how they are used by Oracle.






48. In SQL Developer field names and table names are shown in the color _______.






49. Checks whether any value in the list makes the condition true.






50. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.