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 the SPOOL command is used and what program it can be used in.






2. SELECT LIST of a subquery in an INSERT statement






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






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






5. Subqueries can return...






6. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________






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






8. NUMBER functions can be...






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






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






11. When is it not a good idea to use an index?






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






13. How many characters can you have using the VARCHAR data type?






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






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






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






17. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work






18. Another name for a data dictionary view is __________________ or _________________.






19. If a graphical representation of a table's box has __________ it means that the relationship is identifying.






20. Users can only see changes made to a database once they have been...






21. What is the maximum value for a column defined as NUMBER(4 -2)?






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






23. What is the tab in SQL Developer where data dictionary view information can be found?






24. The key that most database designers prefer and is chosen by the system is the _____________ key.






25. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.






26. What is the name of the view where you can find the collection of static and data dictionary tables and views - along with their descriptions?






27. The focus of the logical data model is _____________






28. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.






29. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.






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






31. The _____________ clause determines how rows are grouped.






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






33. The _______ operator determines common rows.






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






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






36. SQL*Plus is used more than SQL Developer when you need to...






37. _________ rows are not allowed in the relational model.






38. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?






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






40. The DUAL table can be used for...






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






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






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






44. What does SQL stand for?






45. SELECT * FROM instructor ORDER BY phone






46. Explicit data type conversion is preferable to Oracle's...






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






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






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






50. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.