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 Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.






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






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






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






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






6. _________________ relationships are always optional relationships.






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






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






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






10. Subqueries can return...






11. Dynamic views begin with a ___________.






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






13. PAGESIZE






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






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






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






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






18. What are the main components of a ROWID?






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






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






21. The focus of the logical data model is _____________






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






23. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...






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






25. The _____________ clause determines how rows are grouped.






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






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






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






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






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






31. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






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






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






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






36. The using clause of the ANSI join syntax always assumes an...






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






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






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






40. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.






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






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






43. List 4 aggregate functions






44. When column names on the tables are different - you use the ______ condition.






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






46. Self-joins are useful for performing comparisons and checking for ___________ in data.






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






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






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






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