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. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.






2. _________________ relationships are always optional relationships.






3. The ____________ command makes changes permanent.






4. In a view you can give a column a different name than it has in the...






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






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






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






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






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






10. Self-joins are useful for performing comparisons and checking for ___________ in data.






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






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






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






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






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






16. The COUNT function uses the __________ wildcard.






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






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






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






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






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






22. List 4 aggregate functions






23. Subqueries can return...






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






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






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






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






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






29. The focus of the logical data model is _____________






30. Explain why constraints are used when building tables.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






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






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






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






35. To equijoin a table with another table involves matching the...






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






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






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






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






40. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.






41. __________________ inserts the current date and time.






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






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






44. Oracle uses the outer join operator to indicate that nulls are shown for...






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






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






47. SELECT LIST of a subquery in an INSERT statement






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






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






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