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. A transaction is a...






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






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






4. List 4 aggregate functions






5. Queries that are found in parentheses are done first - just as in the order of operations when doing...






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






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






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






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






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






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






12. LINESIZE






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






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






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






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






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






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






19. SELECT LIST of a subquery in an INSERT statement






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






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






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






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






24. Write a statement that drops the index need_to_pass_i






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






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






27. The TRUNC function on a date without a format model truncates the timestamp to...






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






29. What is the most common DATE format found in SQL?






30. The _______ operator determines common rows.






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






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






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






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






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






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






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






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






39. The ___________ operator tests whether a matching row cannot be found.






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






41. NUMBER functions can be...






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






43. Explain why constraints are used when building tables.


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






45. What is the name of the view where you can find the collection of static and data dictionary tables and views - along with their descriptions?






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






47. The focus of the logical data model is _____________






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






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






50. _________________ relationships are always optional relationships.