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. The ________ operator cannot compare against a list of values.






2. UNION ALL does not sort - therefore it is less time consuming to use than the...






3. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






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






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






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






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






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






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






11. SELECT LIST of a subquery in an INSERT statement






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






13. SELECT * FROM instructor ORDER BY phone






14. The _______ operator determines common rows.






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






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






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






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






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






20. When column names on the tables are different - you use the ______ condition.






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






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






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






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






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






26. Explain what is found in the All Objects report folder in SQL Developer






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






44. List the different types of data dictionary views.






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






46. Write a statement that drops the index need_to_pass_i






47. Comparison operators can compare multiple _________________.






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






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






50. What does SQL stand for?