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 create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.






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






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






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






5. What are the main components of a ROWID?






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






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






8. List the reasons that a subquery could not be unnested.






9. The _______ operator determines common rows.






10. SELECT * FROM instructor ORDER BY phone






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






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






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






14. NUMBER functions can be...






15. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






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






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






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






20. Oracle uses the outer join operator to indicate that nulls are shown for...






21. To equijoin a table with another table involves matching the...






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






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






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






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






26. What does SQL stand for?






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






28. You use the __________ keyword to change characteristics of a column.






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






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






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






32. The focus of the logical data model is _____________






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






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






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


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






37. Explain how you can optimize your queries with subqueries and the main advantage of doing so.






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






39. Joins involving multiple columns must always follow the ____________ relationship path.






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






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






42. What is the maximum value for a column defined as NUMBER(4 -2)?






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






44. A calculation with a null always yields...






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






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






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






48. PAGESIZE






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






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