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. When is it not a good idea to use an index?






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






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






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






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






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






7. What are the main components of a ROWID?






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






9. NUMBER functions can be...






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






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






12. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.






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






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






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






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






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






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






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






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






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






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






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






24. PAGESIZE






25. The ______ depicts the M of a 1:M relationship.

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


26. The ____________ command makes changes permanent.






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






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






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






30. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.






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






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






33. The ________ operator cannot compare against a list of values.






34. Comparison operators can compare multiple _________________.






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






36. A transaction is a...






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






38. _________________ relationships are always optional relationships.






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






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






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






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






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






44. Explain in detail the impact of INDEXES and how they are used by Oracle.






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






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






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






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






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






50. Which operator is most commonly used?