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






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






3. The purpose of the HAVING clause is to eliminate___________.






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






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






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






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






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






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






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






11. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






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






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






15. If a graphical representation of a table's box has __________ it means that the relationship is identifying.






16. _________________ relationships are always optional relationships.






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






18. How many characters can you have using the VARCHAR data type?






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






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






21. List the different types of data dictionary views.






22. Explicit data type conversion is preferable to Oracle's...






23. Dynamic views begin with a ___________.






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






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






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






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






28. The term ____________ ___________ is used to express a join that satisfies the join condition.






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






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






31. Which operator is most commonly used?






32. The _____________ clause determines how rows are grouped.






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






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






35. What is the name of the key automatically generated from a sequence?






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






37. List the steps performed by a correlated subquery.






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






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






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






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






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






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






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






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






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






47. SELECT LIST of a subquery in an INSERT statement






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






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






50. You can use the ________________ to subtract months from a given date.