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. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.






2. Which operator is most commonly used?






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






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






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






6. List 6 Table-Related Menu Choices






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






8. The COUNT function uses the __________ wildcard.






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






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






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






12. To place a line comment in your SQL statements - you first place a // at the beginning of the line.






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






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






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






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






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






18. What are the main components of a ROWID?






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






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






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






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






23. Subqueries can return...






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






25. LINESIZE






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






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






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






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






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






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






32. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






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






35. When you have issued a DELETE command - you can still ________ those rows and restore the information.






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






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






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


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






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






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






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






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






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






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






46. The _______ operator determines common rows.






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






48. Returns rows if the condition is true for all the values in the list






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






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