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 TRUNC function on a date without a format model truncates the timestamp to...






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






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






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






5. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.






6. FEEDBACK






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






8. List the steps performed by a correlated subquery.






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






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






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






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






13. NUMBER functions can be...






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






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






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






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






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






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






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






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






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






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






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






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






26. A transaction is a...






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






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






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






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






31. To equijoin a table with another table involves matching the...






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






33. What does SQL stand for?






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






35. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.






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






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






38. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






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






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






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






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






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






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






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






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






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






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






50. The _____________ clause determines how rows are grouped.