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 what is found in the All Objects report folder in SQL Developer
Combine
Month ddth - yyyy
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Hide data
2. _________________ relationships are always optional relationships.
Any
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
Recursive
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
3. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MODIFY
MINUS
SELECT SYSDATE+1/96 - FROM dual
DECODE
4. 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.
Self-joins
DROP INDEX need_to_pass_i
RIGHT LEFT JOIN
Data
5. The DUAL table can be used for...
SYSDATE
Export Data
Testing functions
Equijoin
6. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
ALL_OBJECTS
Precision
Fractional seconds
Scale
7. The COUNT function uses the __________ wildcard.
Asterisk
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
MINUS
X
8. The using clause of the ANSI join syntax always assumes an...
2000
RENAME just_two_more_weeks TO finally_i
ADD_MONTHS function
Equijoin and identical column names
9. List the reasons that a subquery could not be unnested.
Another null
Orphan
X
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
10. LINESIZE
RENAME just_two_more_weeks TO finally_i
Optional
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Parent table
11. Which one of the following string functions tells you how many characters are in a string?
LENGTH
VALUES
FALSE
Another null
12. What is the first column of a composite index called?
USER_ - ALL_ - DBA_ - and V$
UTC
Optional
Leading-edge
13. When you run a script in SQL*Plus you must give the...
Script
Scale
Twice
Location of the file
14. 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
15. Converting a text literal to DATE format requires the use of the...
ANY
A correct statement
Equijoin
TO_CHAR function
16. What is the keyboard shortcut for the ROLLBACK command?
F12
ADD_MONTHS function
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Command returns the number of records returned by a query.
17. Joins involving multiple columns must always follow the ____________ relationship path.
Results
Primary key/foreign key
V$
LENGTH
18. Checks whether any value in the list makes the condition true.
FALSE
RIGHT LEFT JOIN
Business problems
Any
19. How many characters can you have using the VARCHAR data type?
4000
Details
Correlated
Location of the file
20. The ALTER SESSION statement can change the session's...
ADD_MONTHS function
When the table is small (unless your business rules require you too)
Time zone
COMMIT
21. Write a statement that drops the index need_to_pass_i
INNER JOIN
Command returns the number of records returned by a query.
Equijoin and correlated subquery
DROP INDEX need_to_pass_i
22. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
RUN SCRIPT
99.99
MODIFY
23. You can pass parameters from the operating system when ___________ in SQl*Plus
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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
VALUES
Running a script file
24. In SQL Developer field names and table names are shown in the color _______.
Black
COMMIT
BETWEEN
STORAGE
25. The purpose of the HAVING clause is to eliminate___________.
Non-matching rows
ANY
Groups
Mathematical equations
26. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
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.
FALSE
USER_ - ALL_ - DBA_ - and V$
27. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
DESC dict;
BETWEEN
Nested
28. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
RUN SCRIPT
Semicolon or forward slash
KEEP INDEX
IN ANY ALL SOME
29. Oracle uses the outer join operator to indicate that nulls are shown for...
Rounded edges
Non-matching rows
X
Inconsistencies
30. The same function can be used ______ in a SELECT statement.
Twice
Any
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.
SELECT DISTINCT menu FROM restaurant
31. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
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
BETWEEN
Fractional seconds
TO_CHAR function
32. List 6 Table-Related Menu Choices
SET clause of an UPDATE statement
F12
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
RENAME just_two_more_weeks TO finally_i
33. SQL*Plus is used more than SQL Developer when you need to...
12:00:00 A.M
Any
@ or START
Run scripts
34. NUMBER functions can be...
ADD_MONTHS function
MINUS
Nested
DICTIONARY
35. The ________ operator cannot compare against a list of values.
Business problems
LIKE
Three
RIGHT LEFT JOIN
36. __________________ inserts the current date and time.
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
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.
SYSDATE
Black
37. To join four tables - you must have at least _____ join conditions.
V$
The way NULL values are treated
Committed
Three
38. You use the __________ keyword to change characteristics of a column.
MODIFY
CLOB
INNER JOIN
Precision
39. List the different types of data dictionary views.
Precision
USER_ - ALL_ - DBA_ - and V$
A correct statement
Equijoin and correlated subquery
40. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
SYSDATE
Both MIN and MAX
When the table is small (unless your business rules require you too)
Export Data
41. What does the following function return? SELECT LENGTH(NULL) - FROM dual
GROUP BY
Null
Inconsistencies
Location of the file
42. To restart a sequence at a lower number - you can drop and ________ the sequence.
DD-MON-YY
Command returns the number of records returned by a query.
SELECT DISTINCT menu FROM restaurant
Re-create
43. Explain how the SPOOL command is used and what program it can be used in.
12:00:00 A.M
BETWEEN
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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
44. Match each of the SQL commands on the left with a verb from the list.
SELECT DISTINCT menu FROM restaurant
INTERSECT
KEEP INDEX
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
45. The time zone displacement value indicates the time difference from _______.
Three
SELECT DISTINCT menu FROM restaurant
UTC
Fractional seconds
46. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
Equijoin and identical column names
DESC dict;
BETWEEN
47. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Parent table
BETWEEN
UNION operator
48. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Combine
Mathematical equations
ADD
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.
49. Explain what a static data dictionary view is and how it is used
Non-matching rows
Running a script file
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
50. Subqueries can return...
Multiple rows
Twice
Nested
Running a script file