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. Checks whether any value in the list makes the condition true.






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






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






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


6. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.






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






8. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.






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






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






11. Write a statement that drops the index need_to_pass_i






12. Subqueries can return...






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






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






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






16. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






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






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






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






21. List the steps performed by a correlated subquery.






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






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






24. The _____________ clause determines how rows are grouped.






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






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






27. Write a statement for SQL*Plus that shows the dictionary.






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






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






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






31. Comparison operators can compare multiple _________________.






32. __________________ inserts the current date and time.






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






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






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






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






37. What is the tab in SQL Developer where data dictionary view information can be found?






38. SELECT LIST of a subquery in an INSERT statement






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






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






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






42. List 4 aggregate functions






43. PAGESIZE






44. The ____________ command makes changes permanent.






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






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






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






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






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






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