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. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.






2. Write a statement that drops the index need_to_pass_i






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






4. _________ and __________ functions are opposites of each other and provide a value in a group of rows.






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






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






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






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






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






10. The query retrieves more than 5 to 15 percent of the rows






11. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...






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






13. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.






14. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.






15. What is the most common DATE format found in SQL?






16. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.






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






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






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






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






21. FEEDBACK






22. The _______ operator determines common rows.






23. 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?






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






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






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






27. __________________ inserts the current date and time.






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






29. Which operator is most commonly used?






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






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






32. What is the keyboard shortcut for the ROLLBACK command?






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






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






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






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






37. NUMBER functions can be...






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






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






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






41. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.






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






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






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






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






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






47. What are the main components of a ROWID?






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






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






50. To join four tables - you must have at least _____ join conditions.