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. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.






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






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






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






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






6. _________________ relationships are always optional relationships.






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






8. Write the syntax to rename index just_two_more_weeks_i to finally_i






9. A transaction is a...






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






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






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






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






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






15. Write a statement that drops the index need_to_pass_i






16. What is the main difference between the NOT EXISTS and the NOT IN operators?






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






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






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






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






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






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






23. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.






24. The COUNT function is useful for determining whether a table has...






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






26. Which operator is most commonly used?






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






28. List 4 aggregate functions






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






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






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






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






33. The COUNT function uses the __________ wildcard.






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






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






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






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






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






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






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






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






42. The _____________ clause determines how rows are grouped.






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






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






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






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






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






48. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...






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






50. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.