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 join four tables - you must have at least _____ join conditions.






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






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






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






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






6. Which operator is most commonly used?






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






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






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






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






11. FEEDBACK






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






13. NUMBER functions can be...






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






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


16. Write a statement for SQL*Plus that shows the dictionary.






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






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






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






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






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






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






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






24. List the steps performed by a correlated subquery.






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






26. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.






27. LINESIZE






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






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






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






31. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.






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






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






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






35. The COUNT function uses the __________ wildcard.






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






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






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






39. A transaction is a...






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






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






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






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






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






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






46. List 4 aggregate functions






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






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






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






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