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 _____________ clause determines how rows are grouped.
COMMIT
Equijoin and correlated subquery
Has not changed the name
GROUP BY
2. Which format mask displays December 31st - 1999?
Precision
Month ddth - yyyy
The indexed column is part of an expression. In this case - consider creating a function-based index instead
ROLLBACK
3. What does SQL stand for?
Structured Query Language
Three
RENAME just_two_more_weeks TO finally_i
Data
4. What do views do that makes them so useful for security?
LIKE
Hide data
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Any
5. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
99.99
When the table is small (unless your business rules require you too)
6. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Any
Has not changed the name
RUN SCRIPT
X
7. What is Oracle's most popular index storage structure?
Time zone
MODIFY
SET clause of an UPDATE statement
B-Tree Index
8. The focus of the logical data model is _____________
TO_CHAR function
Business problems
Testing functions
Primary key/foreign key
9. In a view you can give a column a different name than it has in the...
Combine
Parent table
NATURAL JOIN
All caps
10. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Correlated
Three
DD-MON-YY
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.
11. The COUNT function is useful for determining whether a table has...
Data
FALSE
Implicit conversion
Asterisk
12. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
Scalar
Twice
Inconsistencies
13. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
To achieve good performance for data retrieval and data manipulation statements Oracle uses indexes. In the same way you would use an index in the back of a book to quickly find information - Oracle uses indexes to speed up data retrieval. If the app
Optional
SUM
Asterisk
14. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
All caps
FALSE
Extra spaces
15. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Structured Query Language
RUN SCRIPT
TO_CHAR function
Parent table
16. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
Re-create
Actual column
Self-joins
17. The ________ operator cannot compare against a list of values.
LIKE
When the table is small (unless your business rules require you too)
DROP INDEX need_to_pass_i
The way NULL values are treated
18. What is the tab in SQL Developer where data dictionary view information can be found?
Details
When the table is small (unless your business rules require you too)
RIGHT LEFT JOIN
999999.9999
19. The ______ depicts the M of a 1:M relationship.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
20. Explain what is found in the All Objects report folder in SQL Developer
Inconsistencies
Common column value
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Combine
21. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
Recursive
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.
RUN SCRIPT
22. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
Combine
Running a script file
BETWEEN
23. SELECT * FROM instructor ORDER BY phone
A correct statement
Same
Leading-edge
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
24. The _______ function adds values together for a group of rows.
SUM
Has not changed the name
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Details
25. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a 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
Self-joins
UNION
DICT_COLUMNS
26. 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.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
ANSI
FALSE
VALUES
27. The purpose of the HAVING clause is to eliminate___________.
COMMIT
UTC
Groups
Surrogate
28. To join four tables - you must have at least _____ join conditions.
KEEP INDEX
Precision
Three
ADD_MONTHS function
29. A calculation with a null always yields...
Optional
Another null
UTC
DESC dict;
30. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
ADD_MONTHS function
DD-MON-YY
Null
31. What is the keyboard shortcut for the ROLLBACK command?
F12
Groups
DESC dict;
Business problems
32. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
ANY
X
999999.9999
To achieve good performance for data retrieval and data manipulation statements Oracle uses indexes. In the same way you would use an index in the back of a book to quickly find information - Oracle uses indexes to speed up data retrieval. If the app
33. What is the main difference between the NOT EXISTS and the NOT IN operators?
VALUES clause of an INSERT statement
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
The way NULL values are treated
All
34. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
F12
ANSI
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.
35. Dynamic views begin with a ___________.
Retrieve
V$
DICTIONARY
Self-joins
36. __________________ inserts the current date and time.
SYSDATE
Asterisk
A correct statement
X
37. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
RIGHT LEFT JOIN
12:00:00 A.M
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.
NATURAL JOIN
38. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
TO_CHAR function
Same
DROP INDEX need_to_pass_i
39. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. The COUNT function uses the __________ wildcard.
999999.9999
SELECT DISTINCT menu FROM restaurant
Asterisk
Primary key/foreign key
41. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
Scale
Optional
Columns
42. The same function can be used ______ in a SELECT statement.
KEEP INDEX
Twice
V$
To achieve good performance for data retrieval and data manipulation statements Oracle uses indexes. In the same way you would use an index in the back of a book to quickly find information - Oracle uses indexes to speed up data retrieval. If the app
43. The TRUNC function on a date without a format model truncates the timestamp to...
+
2000
CLOB
12:00:00 A.M
44. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
4000
Asterisk
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
45. UNION ALL does not sort - therefore it is less time consuming to use than the...
NATURAL JOIN
DICTIONARY
UNION operator
Primary key/foreign key
46. List the steps performed by a correlated subquery.
RUN SCRIPT
**** 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
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
Self-joins
47. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Another null
Equijoin and correlated subquery
DD-MON-YY
CLOB
48. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Hide data
ALL_OBJECTS
KEEP INDEX
INTERSECT
49. What is the first column of a composite index called?
99.99
@ or START
Results
Leading-edge
50. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Script
ROLLBACK
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
TO_CHAR function