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. Explain how Substitution Variables are used when writing scripts.






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






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






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






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






6. SELECT * FROM instructor ORDER BY phone






7. List the steps performed by a correlated subquery.






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






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






10. A transaction is a...






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






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






13. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






15. How many characters can you have using the VARCHAR data type?






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






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






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






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






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






21. The COUNT function uses the __________ wildcard.






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






23. The same function can be used ______ in a SELECT statement.






24. The _______ operator determines common rows.






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






26. Subqueries can return...






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






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






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






30. The time zone displacement value indicates the time difference from _______.






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






32. List 4 aggregate functions






33. Write a statement that drops the index need_to_pass_i






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






35. What are the main components of a ROWID?






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






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






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






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






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






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






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






43. The ROWID pseudocolumn is not an ________- but it acts like one.






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






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






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






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






48. List the different types of data dictionary views.






49. _________________ relationships are always optional relationships.






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