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. What is the name of the key automatically generated from a sequence?






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


3. SQL*Plus is used more than SQL Developer when you need to...






4. Subqueries can return...






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






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






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






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






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






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






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






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






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






14. SELECT * FROM instructor ORDER BY phone






15. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.






16. _________________ relationships are always optional relationships.






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






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






19. Which operator is most commonly used?






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






21. NUMBER functions can be...






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






23. Which format mask displays December 31st - 1999?






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






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






26. What is the first column of a composite index called?






27. The DUAL table can be used for...






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






29. The focus of the logical data model is _____________






30. List the steps performed by a correlated subquery.






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






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






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






34. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error






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






36. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.






37. List 4 aggregate functions






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






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






40. A transaction is a...






41. Explicit data type conversion is preferable to Oracle's...






42. What does SQL stand for?






43. LINESIZE






44. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?






45. The COUNT function uses the __________ wildcard.






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






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






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






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






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