SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Oracle SQL
Start Test
Study First
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. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Committed
Surrogate key
Any
X
2. What is the name of the key automatically generated from a sequence?
UNION
Surrogate key
FALSE
MINUS
3. The ______ depicts the M of a 1:M relationship.
4. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
UNION
Re-create
Implicit conversion
5. The time zone displacement value indicates the time difference from _______.
UTC
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
ROLLBACK
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
6. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
SELECT DISTINCT menu FROM restaurant
DICT_COLUMNS
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
7. A _________ subquery returns a single column with a single row
ROLLBACK
The main components of a ROWID are the data object number - the number of the data block - the numbers of rows within the data block - and the data file number.
Scalar
Business problems
8. The ALTER SESSION statement can change the session's...
Rounded edges
4000
Time zone
DICT_COLUMNS
9. How many characters can you have using the VARCHAR data type?
4000
4
All caps
SUM
10. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Extra spaces
LENGTH
IN ANY ALL SOME
4
11. Subqueries can return...
Subqueries allow you to nest multiple queries into each other. This gives you the ability to use one statement to break down a problem into individual components. Without nesting queries - you would be required to have multiple queries which could be
Multiple rows
Three
Committed
12. Dynamic views begin with a ___________.
Any
SYSDATE
V$
The static data dictionary stores details about database objects - such as tables - indexes - and views. Whenever a new object is added or an object is changed - data about the object is recorded in the data dictionary.
13. When you have issued a DELETE command - you can still ________ those rows and restore the information.
STORAGE
Another null
ADD_MONTHS function
Retrieve
14. What is the first column of a composite index called?
Asterisk
Leading-edge
Any
STORAGE
15. The DUAL table can be used for...
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
USER_ - ALL_ - DBA_ - and V$
F12
Testing functions
16. When you run a script in SQL*Plus you must give the...
UTC
X
INNER JOIN
Location of the file
17. The _______ function lets you perform if-then-else functionality with the SQL language.
Correlated
DICTIONARY
LENGTH
DECODE
18. The query retrieves more than 5 to 15 percent of the rows
INNER JOIN
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Orable's flashback query feature allows you to look at values of a query at a specific time in the past - such as before specfic DML statements occured. This can be usefull in case a suer accidentally performs an unintended but committed DML change.
19. LINESIZE
Hide data
SELECT DISTINCT menu FROM restaurant
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
20. _________________ relationships are always optional relationships.
All caps
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Recursive
RIGHT LEFT JOIN
21. Explain the steps needed to run a script in SQL Developer
Load the file into the SQL Statement Box - by opening the location the file is stored and inserting it into the statement Box. Next you can press the F5 key.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Results
@ or START
22. Explain how the SPOOL command is used and what program it can be used in.
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
4
INNER JOIN
V$
23. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
Nested
Scalar
Hide data
24. The ______ operator compares a list of values for equivalency
Both MIN and MAX
Scale
ANY
Orphan
25. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
Combine
RIGHT LEFT JOIN
Black
Running a script file
26. The focus of the logical data model is _____________
Business problems
X
V$
Details
27. The using clause of the ANSI join syntax always assumes an...
Non-matching rows
4
DECODE
Equijoin and identical column names
28. Explain how Substitution Variables are used when writing scripts.
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
Data
BETWEEN
2000
29. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Actual column
Structured Query Language
ROLLBACK
Running a script file
30. What does the following function return? SELECT LENGTH(NULL) - FROM dual
INNER JOIN
Null
X
99.99
31. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Surrogate key
Structured Query Language
Optional
RUN SCRIPT
32. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Re-create
Leading-edge
Mathematical equations
MINUS
33. 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?
DICTIONARY
Results
Optional
Precision
34. Comparison operators can compare multiple _________________.
DICT_COLUMNS
UNION operator
Columns
IN ANY ALL SOME
35. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
36. __________________ inserts the current date and time.
Equijoin
All
SYSDATE
X
37. Checks whether any value in the list makes the condition true.
CLOB
RENAME just_two_more_weeks TO finally_i
USER_ - ALL_ - DBA_ - and V$
Any
38. _________ rows are not allowed in the relational model.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Orphan
X
Command returns the number of records returned by a query.
39. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Same
Equijoin
MODIFY
12:00:00 A.M
40. UNION ALL does not sort - therefore it is less time consuming to use than the...
LIKE
+
UNION operator
Export Data
41. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
ANSI
Export Data
X
COMMIT
42. You use the _________ keyword to add columns or constraints to a table.
SUM
User-defined reports
UNION operator
ADD
43. What is the keyboard shortcut for the ROLLBACK command?
F12
VALUES
Equijoin and correlated subquery
SUM
44. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
Equijoin and identical column names
Any
Null
45. Explain what a static data dictionary view is and how it is used
Command returns the number of records returned by a query.
SELECT SYSDATE+1/96 - FROM dual
The static data dictionary stores details about database objects - such as tables - indexes - and views. Whenever a new object is added or an object is changed - data about the object is recorded in the data dictionary.
**** Select a row from the outer query - Determine the value of the correlated column - Execute the inner query for each record of the outer query. - Feed the results of the inner query to the outer query and evaluate it. It if satisfies the criteria
46. A transaction is a...
ANSI
Results
12:00:00 A.M
Logical unit of work
47. When column names on the tables are different - you use the ______ condition.
Surrogate
ON
Non-matching rows
When you want to run the same script repeatedly - but want to be able to change a variable you would use a substitution variable. During the execution of the script the user will be prompted to input the variable to use.
48. Which format mask displays December 31st - 1999?
Committed
Hide data
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Month ddth - yyyy
49. What do views do that makes them so useful for security?
INTERSECT
ROLLBACK
Hide data
4
50. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Correlated
DD-MON-YY
Retrieve
GROUP BY