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 the steps needed to run a script in SQL Developer






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






3. Subqueries can return...






4. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.






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






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






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






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






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






10. Explain why constraints are used when building tables.

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


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






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






13. Which operator is most commonly used?






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






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






16. The ______ operator compares a list of values for equivalency






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






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






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






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






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






22. Explain what a static data dictionary view is and how it is used






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






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






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






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


27. _________________ relationships are always optional relationships.






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






29. Comparison operators can compare multiple _________________.






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






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






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






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






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






35. The ALTER SESSION statement can change the session's...






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






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






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






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






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






41. SELECT * FROM instructor ORDER BY phone






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






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






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






45. __________________ inserts the current date and time.






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






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






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






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






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