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 is it not a good idea to use an index?






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






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






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






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






6. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






8. The time zone displacement value indicates the time difference from _______.






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






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






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






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






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






14. _________________ relationships are always optional relationships.






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






16. The same function can be used ______ in a SELECT statement.






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






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






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






20. The ALTER SESSION statement can change the session's...






21. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.






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






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






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






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






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






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






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






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






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






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






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






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






34. Comparison operators can compare multiple _________________.






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






36. NUMBER functions can be...






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






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






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






40. Returns rows if the condition is true for all the values in the list






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






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






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






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






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






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






47. Which one of the following string functions tells you how many characters are in a string?






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






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






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