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. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.






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






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






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






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






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






7. List the steps performed by a correlated subquery.






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






9. Queries that are found in parentheses are done first - just as in the order of operations when doing...






10. What are the main components of a ROWID?






11. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...






12. SELECT LIST of a subquery in an INSERT statement






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






14. __________________ inserts the current date and time.






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






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






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






18. The _______ operator determines common rows.






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






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






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






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






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


24. What does SQL stand for?






25. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.






26. FEEDBACK






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






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






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






30. The using clause of the ANSI join syntax always assumes an...






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






32. Comparison operators can compare multiple _________________.






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






34. The term ____________ ___________ is used to express a join that satisfies the join condition.






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






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






37. Which operator is most commonly used?






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






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






40. SELECT * FROM instructor ORDER BY phone






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






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






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






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






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






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






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






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






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






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