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. It is considered good form to put all SQL commands in...






2. The COUNT function uses the __________ wildcard.






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






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






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






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






7. The term ____________ ___________ is used to express a join that satisfies the join condition.






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






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






10. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.






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






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






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






14. NUMBER functions can be...






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






16. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________






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






18. Explain what is found in the All Objects report folder in SQL Developer






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






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






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






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






23. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.






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






25. SELECT * FROM instructor ORDER BY phone






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






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






28. A join across three tables can be expressed with the ________ join syntax.






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






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






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






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






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






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






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






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






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






38. A transaction is a...






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






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






41. Which operator is most commonly used?






42. FEEDBACK






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






44. What does SQL stand for?






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






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






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






48. Users can only see changes made to a database once they have been...






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






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