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 TRUNC function on a date without a format model truncates the timestamp to...






2. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.






3. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






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






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






7. Which operator is most commonly used?






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






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






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






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






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






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






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






15. Match each of the SQL commands on the left with a verb from the list.






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






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






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






19. In a view you can give a column a different name than it has in the...






20. What are the main components of a ROWID?






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






22. What is the data type you can use if you need an unlimited number of textual characters?






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






24. If a graphical representation of a table's box has __________ it means that the relationship is identifying.






25. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.






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






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






28. LINESIZE






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






30. Explain the steps needed to run a script in SQL Developer






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






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






33. _________________ relationships are always optional relationships.






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






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






36. List 4 aggregate functions






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






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






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






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






41. SELECT LIST of a subquery in an INSERT statement






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






43. Explain what a static data dictionary view is and how it is used






44. What is the syntax used to indicate that you are using the Oracle Outer Join operator?






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






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






47. The focus of the logical data model is _____________






48. Explicit data type conversion is preferable to Oracle's...






49. Subqueries can return...






50. List the different types of data dictionary views.