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. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.






2. The COUNT function uses the __________ wildcard.






3. PAGESIZE






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






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






6. Subqueries can return...






7. Comparison operators can compare multiple _________________.






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






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






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






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






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






13. LINESIZE






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






15. What are the main components of a ROWID?






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






17. What does SQL stand for?






18. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






20. You use the _________ keyword to add columns or constraints to a table.






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






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






23. Dynamic views begin with a ___________.






24. Explain why constraints are used when building tables.


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






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






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






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






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






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






31. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.






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






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






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






35. Write a statement that drops the index need_to_pass_i






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






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






38. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.






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






40. The ______ depicts the M of a 1:M relationship.


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






42. _________________ relationships are always optional relationships.






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






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






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






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






47. A _________ subquery returns a single column with a single row






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






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






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