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. Users can only see changes made to a database once they have been...






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






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






4. Match each of the SQL commands on the left with a verb from the list.






5. 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.






6. When you have issued a DELETE command - you can still ________ those rows and restore the information.






7. Explain what a static data dictionary view is and how it is used






8. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly






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






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






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






12. Which format mask displays December 31st - 1999?






13. When you run a script in SQL*Plus you must give the...






14. A join across three tables can be expressed with the ________ join syntax.






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






16. The _______ operator determines common rows.






17. List 6 Table-Related Menu Choices






18. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows






19. How many characters can be stored in the CHAR column/field?






20. LINESIZE






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






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






23. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.






24. Explain how Substitution Variables are used when writing scripts.






25. What is the name of the key automatically generated from a sequence?






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






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






28. The ROWID pseudocolumn is not an ________- but it acts like one.






29. List the reasons that a subquery could not be unnested.






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






31. The purpose of the HAVING clause is to eliminate___________.






32. To place a line comment in your SQL statements - you first place a // at the beginning of the line.






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






34. What do views do that makes them so useful for security?






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






36. The ________ operator cannot compare against a list of values.






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






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






39. PAGESIZE






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






41. Self-joins are useful for performing comparisons and checking for ___________ in data.






42. To restart a sequence at a lower number - you can drop and ________ the sequence.






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






44. What are the main components of a ROWID?






45. A _________ subquery returns a single column with a single row






46. What does SQL stand for?






47. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.






48. Write a statement that drops the index need_to_pass_i






49. The ___________ operator tests whether a matching row cannot be found.






50. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.