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. What does SQL stand for?
Inconsistencies
The way NULL values are treated
Structured Query Language
RIGHT LEFT JOIN
2. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
SYSDATE
Testing functions
Structured Query Language
3. Which one of the following string functions tells you how many characters are in a string?
@ or START
GROUP BY
Columns
LENGTH
4. When column names on the tables are different - you use the ______ condition.
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.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
ON
Same
5. You use the _________ keyword to add columns or constraints to a table.
Self-joins
ADD
Parent table
Default is 14; when you use the default - you repeat the heading every 14 rows.
6. The ALTER SESSION statement can change the session's...
Time zone
X
Another null
Hide data
7. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
Inconsistencies
999999.9999
ADD
8. LINESIZE
UTC
UNION
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
KEEP INDEX
9. The query retrieves more than 5 to 15 percent of the rows
Actual column
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
LENGTH
The indexed column is part of an expression. In this case - consider creating a function-based index instead
10. The __________ operator is inclusive of the two values specified.
SELECT DISTINCT menu FROM restaurant
+
Non-matching rows
BETWEEN
11. The term ____________ ___________ is used to express a join that satisfies the join condition.
Orphan
Actual column
INNER JOIN
Time zone
12. List the steps performed by a correlated subquery.
Semicolon or forward slash
Correlated
**** 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
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
13. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
CLOB
Constraints are used to enforce the business rules of a system. For instance - 'The salary of an employee may not be a negative number' may be enforced with a check constraint on the salary column. Constraints also ensure integrity and data consisten
X
14. Subqueries can return...
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Columns
LIKE
Multiple rows
15. SQL*Plus is used more than SQL Developer when you need to...
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.
999999.9999
Script
Run scripts
16. PAGESIZE
NATURAL JOIN
Default is 14; when you use the default - you repeat the heading every 14 rows.
Equijoin and identical column names
DROP INDEX need_to_pass_i
17. Dynamic views begin with a ___________.
RENAME just_two_more_weeks TO finally_i
Surrogate key
V$
Details
18. The ______ operator compares a list of values for equivalency
SELECT DISTINCT menu FROM restaurant
ANY
When you issue a INSERT - UPDATE - DELETE - or MERGE statement - Oracle automatically locks the modified rows. The lock prevents other sessions from making changes to these rows. The lock is released when the session initiating change commits or roll
RENAME just_two_more_weeks TO finally_i
19. The time zone displacement value indicates the time difference from _______.
ADD
UTC
UNION operator
Hide data
20. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
COMMIT
Semicolon or forward slash
Scale
IN ANY ALL SOME
21. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
Self-joins
RUN SCRIPT
Extra spaces
22. The ___________ operator tests whether a matching row cannot be found.
Location of the file
X
B-Tree Index
IN ANY ALL SOME
23. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
ADD
Inconsistencies
**** 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
Precision
24. 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.
X
The way NULL values are treated
ROLLBACK
Has not changed the name
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.
INNER JOIN
ON
DICTIONARY
RIGHT LEFT JOIN
26. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Equijoin
B-Tree Index
Parent table
KEEP INDEX
27. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Nested
DD-MON-YY
Command returns the number of records returned by a query.
Optional
28. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
BETWEEN
USER_ - ALL_ - DBA_ - and V$
Correlated
Inconsistencies
29. Match each of the SQL commands on the left with a verb from the list.
When you issue a INSERT - UPDATE - DELETE - or MERGE statement - Oracle automatically locks the modified rows. The lock prevents other sessions from making changes to these rows. The lock is released when the session initiating change commits or roll
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Data
Inconsistencies
30. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Recursive
IN ANY ALL SOME
Rounded edges
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.
31. You use the __________ keyword to change characteristics of a column.
MODIFY
ALL_OBJECTS
MINUS
FALSE
32. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
SELECT SYSDATE+1/96 - FROM dual
STORAGE
4
33. In SQL Developer field names and table names are shown in the color _______.
X
Black
Scalar
SET clause of an UPDATE statement
34. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Correlated
Surrogate key
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.
Scale
35. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
Any
Asterisk
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
36. Write a statement that drops the index need_to_pass_i
Fractional seconds
Retrieve
DROP INDEX need_to_pass_i
ANSI
37. What is the first column of a composite index called?
SELECT DISTINCT menu FROM restaurant
USER_ - ALL_ - DBA_ - and V$
Leading-edge
CLOB
38. Explain what a static data dictionary view is and how it is used
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.
DICTIONARY
Self-joins
Logical unit of work
39. What is the keyboard shortcut for the ROLLBACK command?
F12
IN ANY ALL SOME
All caps
ANSI
40. Explain what is found in the All Objects report folder in SQL Developer
DROP INDEX need_to_pass_i
LIKE
Details
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
41. The _______ operator determines common rows.
User-defined reports
INTERSECT
Precision
2000
42. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
When the table is small (unless your business rules require you too)
4
Actual column
NATURAL JOIN
43. What is the data type you can use if you need an unlimited number of textual characters?
Structured Query Language
Command returns the number of records returned by a query.
CLOB
UNION
44. To restart a sequence at a lower number - you can drop and ________ the sequence.
DD-MON-YY
The indexed column is part of an expression. In this case - consider creating a function-based index instead
@ or START
Re-create
45. ____________ are useful for analyzing and exploring the relationships within your data
CLOB
Self-joins
DESC dict;
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
46. The RTRIM function is useful for eliminating ________ in a string.
Correlated
Nested
DD-MON-YY
Extra spaces
47. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
Time zone
FALSE
99.99
48. Checks whether any value in the list makes the condition true.
DROP INDEX need_to_pass_i
KEEP INDEX
Any
User-defined reports
49. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Another null
RIGHT LEFT JOIN
50. The _______ function adds values together for a group of rows.
Export Data
ALL_OBJECTS
SUM
B-Tree Index