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 you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.






2. When you have issued a DELETE command - you can still ________ those rows and restore the information.






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






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






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






6. _________ and __________ functions are opposites of each other and provide a value in a group of rows.






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






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






9. List 4 aggregate functions






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






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






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


13. A transaction is a...






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






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






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






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






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






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






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






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






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






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






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






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






26. What are the main components of a ROWID?






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






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






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






30. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...






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






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






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






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






35. LINESIZE






36. Which operator is most commonly used?






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






38. _________________ relationships are always optional relationships.






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






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






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






42. __________________ inserts the current date and time.






43. List the different types of data dictionary views.






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






45. The _______ function adds values together for a group of rows.






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






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






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






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






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