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. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table






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






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






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






5. SELECT LIST of a subquery in an INSERT statement






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






7. Dynamic views begin with a ___________.






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






9. The _____________ clause determines how rows are grouped.






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






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






12. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






14. Which operator is most commonly used?






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






16. The _______ operator determines common rows.






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






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






19. The __________ operator is inclusive of the two values specified.






20. What does SQL stand for?






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






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






23. List the different types of data dictionary views.






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






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






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






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






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






29. The focus of the logical data model is _____________






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






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






32. The ____________ command makes changes permanent.






33. What do views do that makes them so useful for security?






34. How many characters can be stored in the CHAR column/field?






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






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






37. A transaction is a...






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






39. List the steps performed by a correlated subquery.






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






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






42. List 6 Table-Related Menu Choices






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






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






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






46. Write a statement that drops the index need_to_pass_i






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






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






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






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