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. Converting a text literal to DATE format requires the use of the...






2. SELECT LIST of a subquery in an INSERT statement






3. When you run a script in SQL*Plus you must give the...






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






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






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






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






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






9. Dynamic views begin with a ___________.






10. __________________ inserts the current date and time.






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






12. A transaction is a...






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






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






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






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






17. To equijoin a table with another table involves matching the...






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






19. SELECT * FROM instructor ORDER BY phone






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






21. PAGESIZE






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






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






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






25. You can pass parameters from the operating system when ___________ in SQl*Plus






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






27. _________________ relationships are always optional relationships.






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






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






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






31. SQL*Plus is used more than SQL Developer when you need to...






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






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






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






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






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






37. In SQL Developer field names and table names are shown in the color _______.






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






39. Explain how the SPOOL command is used and what program it can be used in.






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


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






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






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






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






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






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






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






48. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...






49. Comparison operators can compare multiple _________________.






50. The ____________ command makes changes permanent.