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. Explain how the SPOOL command is used and what program it can be used in.






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






3. PAGESIZE






4. The _______ operator determines common rows.






5. List 4 aggregate functions






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






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






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






9. Write a solution that adds 20 minutes to a given date.






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






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






12. The ____________ command makes changes permanent.






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






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






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






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






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






18. The time zone displacement value indicates the time difference from _______.






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






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






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






22. The _____________ clause determines how rows are grouped.






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






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






25. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.






26. Which operator is most commonly used?






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






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






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






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






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






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






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






34. The _______ function adds values together for a group of rows.






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






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






37. List the different types of data dictionary views.






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






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






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






41. When column names on the tables are different - you use the ______ condition.






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






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






44. NUMBER functions can be...






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






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






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






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






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






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