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 _______ function adds values together for a group of rows.






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






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






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






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






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






7. The COUNT function uses the __________ wildcard.






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






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






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






11. Comparison operators can compare multiple _________________.






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






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






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






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






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






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






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






19. Which one of the following string functions tells you how many characters are in a string?






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






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






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






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






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






25. _________________ relationships are always optional relationships.






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






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






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






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






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






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






32. SELECT * FROM instructor ORDER BY phone






33. FEEDBACK






34. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work






35. List the different types of data dictionary views.






36. The _____________ clause determines how rows are grouped.






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






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






39. What does SQL stand for?






40. SELECT LIST of a subquery in an INSERT statement






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






42. NUMBER functions can be...






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






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






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






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






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






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






49. 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?






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