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. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.






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






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






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






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






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






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






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






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






10. The COUNT function uses the __________ wildcard.






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


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






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






14. What are the main components of a ROWID?






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






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






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






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






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






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






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






22. Dynamic views begin with a ___________.






23. List the different types of data dictionary views.






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






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






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






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






28. The _______ operator determines common rows.






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






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






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






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






33. List 4 aggregate functions






34. Comparison operators can compare multiple _________________.






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






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






37. The ____________ command makes changes permanent.






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






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






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






41. Users can only see changes made to a database once they have been...






42. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.






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


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






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






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






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






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






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






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