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 ________ operator cannot compare against a list of values.






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






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






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






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






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






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






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






9. List 4 aggregate functions






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






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






12. A transaction is a...






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






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






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






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






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






18. Comparison operators can compare multiple _________________.






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






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






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






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






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






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






25. Converting a text literal to DATE format requires the use of the...






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






41. PAGESIZE






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






43. The _______ operator determines common rows.






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






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






46. SELECT LIST of a subquery in an INSERT statement






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






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






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






50. Write a statement that drops the index need_to_pass_i