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. To place a line comment in your SQL statements - you first place a // at the beginning of the line.






2. List 6 Table-Related Menu Choices






3. What are the main components of a ROWID?






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






5. Comparison operators can compare multiple _________________.






6. PAGESIZE






7. The term ____________ ___________ is used to express a join that satisfies the join condition.






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






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






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






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






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






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






14. The ______ operator compares a list of values for equivalency






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






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






17. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.






18. LINESIZE






19. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.






20. What is the syntax used to indicate that you are using the Oracle Outer Join operator?






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






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






23. You can pass parameters from the operating system when ___________ in SQl*Plus






24. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






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






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






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






29. A transaction is a...






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






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






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






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






34. ____________ are useful for analyzing and exploring the relationships within your data






35. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...






36. SELECT * FROM instructor ORDER BY phone






37. Explain how you can optimize your queries with subqueries and the main advantage of doing so.






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






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






40. What is the main difference between the NOT EXISTS and the NOT IN operators?






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






42. List 4 aggregate functions






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






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






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






46. List the steps performed by a correlated subquery.






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






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






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






50. List the different types of data dictionary views.