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. Which one of the following string functions tells you how many characters are in a string?






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






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






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






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






6. Subqueries can return...






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






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






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






10. Which operator is most commonly used?






11. List the different types of data dictionary views.






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






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






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






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






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






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






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






19. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...






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






21. The _____________ clause determines how rows are grouped.






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






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






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






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






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






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






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






29. In SQL Developer field names and table names are shown in the color _______.






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






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






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






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






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






35. SELECT * FROM instructor ORDER BY phone






36. Write a statement that drops the index need_to_pass_i






37. LINESIZE






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






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






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






41. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






43. The ____________ command makes changes permanent.






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






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






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






47. __________________ inserts the current date and time.






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






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






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