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 NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.






2. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows






3. Explain why constraints are used when building tables.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


4. The focus of the logical data model is _____________






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






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






7. A transaction is a...






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






9. The _____________ clause determines how rows are grouped.






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






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






12. What are the main components of a ROWID?






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






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






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






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






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






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






19. LINESIZE






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






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






22. List the different types of data dictionary views.






23. The _______ operator determines common rows.






24. PAGESIZE






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






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






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






28. SELECT * FROM instructor ORDER BY phone






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






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






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






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






33. Which operator is most commonly used?






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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