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. You use the __________ keyword to change characteristics of a column.






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






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






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






5. SELECT * FROM instructor ORDER BY phone






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






7. PAGESIZE






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






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






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






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






12. List 4 aggregate functions






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






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






15. _________________ relationships are always optional relationships.






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






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






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






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






20. A transaction is a...






21. LINESIZE






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






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






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






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






26. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...






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






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






29. Explain what is found in the All Objects report folder in SQL Developer






30. List the steps performed by a correlated subquery.






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






32. What does SQL stand for?






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






34. What is the name of the view where you can find the collection of static and data dictionary tables and views - along with their descriptions?






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






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






37. Another name for a data dictionary view is __________________ or _________________.






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






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






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






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






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






43. The COUNT function uses the __________ wildcard.






44. The COUNT function is useful for determining whether a table has...






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






46. Subqueries can return...






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






48. Write a statement that drops the index need_to_pass_i






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






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