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. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.






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






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






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






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






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






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






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






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






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






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






12. List 4 aggregate functions






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






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






15. You can pass parameters from the operating system when ___________ in SQl*Plus






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






17. What are the main components of a ROWID?






18. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work






19. ____________ are useful for analyzing and exploring the relationships within your data






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






21. Joins involving multiple columns must always follow the ____________ relationship path.






22. 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?






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






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






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






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






27. When is it not a good idea to use an index?






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






29. The _______ operator determines common rows.






30. The _____________ clause determines how rows are grouped.






31. Another name for a data dictionary view is __________________ or _________________.






32. _________________ relationships are always optional relationships.






33. Dynamic views begin with a ___________.






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






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






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






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






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






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






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






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






42. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


43. SELECT LIST of a subquery in an INSERT statement






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






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






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






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






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






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






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