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. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.






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






3. Explain what a static data dictionary view is and how it is used






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






5. Which operator is most commonly used?






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






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






8. The purpose of the HAVING clause is to eliminate___________.






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






10. Dynamic views begin with a ___________.






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






12. You can pass parameters from the operating system when ___________ in SQl*Plus






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






14. What is Oracle's most popular index storage structure?






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






16. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.

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


17. List the steps performed by a correlated subquery.






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






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






20. The _______ operator determines common rows.






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






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






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






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






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






26. List 4 aggregate functions






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






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






29. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.






30. LINESIZE






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






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






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






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






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






36. Subqueries can return...






37. The ________ operator cannot compare against a list of values.






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






39. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.






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






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






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






43. Write a solution that adds 20 minutes to a given date.






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






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






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






47. The COUNT function uses the __________ wildcard.






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






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






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