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. The ___________ operator tests whether a matching row cannot be found.
V$
Nested
X
Month ddth - yyyy
2. The term ____________ ___________ is used to express a join that satisfies the join condition.
Primary key/foreign key
Surrogate key
INNER JOIN
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
3. Checks whether any value in the list makes the condition true.
Any
LIKE
**** 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
BETWEEN
4. A calculation with a null always yields...
Multiple rows
Columns
DD-MON-YY
Another null
5. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Black
BETWEEN
Results
Parent table
6. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
TO_CHAR function
Command returns the number of records returned by a query.
4
7. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Rounded edges
X
Running a script file
Orphan
8. What is the name of the key automatically generated from a sequence?
Surrogate key
KEEP INDEX
BETWEEN
Self-joins
9. List the reasons that a subquery could not be unnested.
VALUES
NATURAL JOIN
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
X
10. Returns rows if the condition is true for all the values in the list
Structured Query Language
All
ANSI
Extra spaces
11. You use the __________ keyword to change characteristics of a column.
UNION operator
Location of the file
MODIFY
Testing functions
12. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Primary key/foreign key
Hide data
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
13. NUMBER functions can be...
B-Tree Index
FALSE
Surrogate key
Nested
14. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
A correct statement
Any
Month ddth - yyyy
KEEP INDEX
15. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Surrogate key
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
Any
Rounded edges
16. What is the most common DATE format found in SQL?
FALSE
RIGHT LEFT JOIN
DD-MON-YY
Inconsistencies
17. Explain how Substitution Variables are used when writing scripts.
The way NULL values are treated
4
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.
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.
18. The TRUNC function on a date without a format model truncates the timestamp to...
V$
Both MIN and MAX
12:00:00 A.M
All caps
19. What is the main difference between the NOT EXISTS and the NOT IN operators?
ADD
The way NULL values are treated
VALUES
Running a script file
20. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Equijoin and identical column names
CLOB
Orphan
999999.9999
21. The _____________ clause determines how rows are grouped.
Retrieve
Run scripts
Orphan
GROUP BY
22. SELECT LIST of a subquery in an INSERT statement
B-Tree Index
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ADD
SET clause of an UPDATE statement
23. The DUAL table can be used for...
Testing functions
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.
X
VALUES clause of an INSERT statement
24. SELECT * FROM instructor ORDER BY phone
Scale
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.
A correct statement
X
25. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
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.
Precision
Crow's foot
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.
26. The COUNT function is useful for determining whether a table has...
Primary key/foreign key
Black
Run scripts
Data
27. A transaction is a...
999999.9999
DICTIONARY
The way NULL values are treated
Logical unit of work
28. A _________ subquery returns a single column with a single row
99.99
Scalar
+
Actual column
29. 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.
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
Asterisk
2000
VALUES
30. The COUNT function uses the __________ wildcard.
ANSI
Asterisk
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.
Data
31. The ________ operator cannot compare against a list of values.
LIKE
Committed
VALUES
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.
32. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
TO_CHAR function
Extra spaces
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
MINUS
33. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
UNION operator
DICTIONARY
F12
34. When you run a script in SQL*Plus you must give the...
GROUP BY
Surrogate key
Equijoin and correlated subquery
Location of the file
35. List the steps performed by a correlated subquery.
Details
Multiple rows
4000
**** 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
36. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
FALSE
BETWEEN
Hide data
37. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
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.
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.
Optional
4
38. The using clause of the ANSI join syntax always assumes an...
99.99
Equijoin and identical column names
RENAME just_two_more_weeks TO finally_i
INTERSECT
39. Write a statement that drops the index need_to_pass_i
FALSE
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.
Committed
DROP INDEX need_to_pass_i
40. In SQL Developer field names and table names are shown in the color _______.
Black
DESC dict;
Primary key/foreign key
FALSE
41. _________________ relationships are always optional relationships.
Hide data
B-Tree Index
Recursive
ANSI
42. Checks whether any value in the list makes the condition true.
Same
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.
Any
Retrieve
43. __________________ inserts the current date and time.
Run scripts
Precision
SYSDATE
Primary key/foreign key
44. Comparison operators can compare multiple _________________.
Leading-edge
LIKE
Primary key/foreign key
Columns
45. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Extra spaces
Implicit conversion
Mathematical equations
USER_ - ALL_ - DBA_ - and V$
46. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Three
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
ALL_OBJECTS
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.
47. Users can only see changes made to a database once they have been...
The way NULL values are treated
Committed
IN ANY ALL SOME
UNION
48. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
KEEP INDEX
Logical unit of work
Testing functions
Scale
49. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
99.99
All caps
Static or dynamic
50. The _______ function lets you perform if-then-else functionality with the SQL language.
Business problems
Parent table
DECODE
Logical unit of work