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. Joins involving multiple columns must always follow the ____________ relationship path.






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






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






4. __________________ inserts the current date and time.






5. Write a statement that drops the index need_to_pass_i






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






7. FEEDBACK






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






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






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






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






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






13. When you have issued a DELETE command - you can still ________ those rows and restore the information.






14. The using clause of the ANSI join syntax always assumes an...






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






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






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






18. The _______ operator determines common rows.






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






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






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






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






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






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






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






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






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






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






29. What do views do that makes them so useful for security?






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






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






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






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






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






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






36. What are the main components of a ROWID?






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






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






39. What does SQL stand for?






40. List the different types of data dictionary views.






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






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






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






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






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






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






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






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






49. The __________ operator is inclusive of the two values specified.






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