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 ALTER SESSION statement can change the session's...






2. LINESIZE






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






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


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






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






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






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






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






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






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






12. The _______ operator determines common rows.






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






14. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly






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






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






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






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






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






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






21. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________






22. Explain in detail the impact of INDEXES and how they are used by Oracle.






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






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






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






26. _________________ relationships are always optional relationships.






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






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






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






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






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






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






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






34. The ______ depicts the M of a 1:M relationship.

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


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






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






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






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






39. The _______ function lets you perform if-then-else functionality with the SQL language.






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






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






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






43. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.






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






45. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






47. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.






48. List 4 aggregate functions






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






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