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. Converting a text literal to DATE format requires the use of the...






2. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.






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






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






5. The key that most database designers prefer and is chosen by the system is the _____________ key.






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






7. Which operator is most commonly used?






8. To restart a sequence at a lower number - you can drop and ________ the sequence.






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






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






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






12. List the reasons that a subquery could not be unnested.






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






14. The COUNT function uses the __________ wildcard.






15. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.






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






17. You can pass parameters from the operating system when ___________ in SQl*Plus






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






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






20. List the steps performed by a correlated subquery.






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






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






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






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






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






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






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






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






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






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






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






32. List the different types of data dictionary views.






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






34. List 4 aggregate functions






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






36. Write the syntax to rename index just_two_more_weeks_i to finally_i






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






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






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






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






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






42. _________________ relationships are always optional relationships.






43. Write a statement that drops the index need_to_pass_i






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






45. The focus of the logical data model is _____________






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






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






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






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






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