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 ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Actual column
RUN SCRIPT
Re-create
UTC
2. The RTRIM function is useful for eliminating ________ in a string.
LIKE
Columns
COMMIT
Extra spaces
3. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
ADD_MONTHS function
Hide data
Equijoin
Nested
4. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Correlated
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.
Fractional seconds
UTC
5. What is the main difference between the NOT EXISTS and the NOT IN operators?
DROP INDEX need_to_pass_i
Re-create
The way NULL values are treated
Details
6. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
All
BETWEEN
ON
7. You use the __________ keyword to change characteristics of a column.
MODIFY
The way NULL values are treated
KEEP INDEX
Primary key/foreign key
8. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Optional
Scalar
12:00:00 A.M
Script
9. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
Combine
RUN SCRIPT
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
10. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Both MIN and MAX
User-defined reports
DECODE
Primary key/foreign key
11. It is considered good form to put all SQL commands in...
IN ANY ALL SOME
All caps
Leading-edge
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
12. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
Leading-edge
Month ddth - yyyy
Both MIN and MAX
13. The ROWID pseudocolumn is not an ________- but it acts like one.
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.
Actual column
IN ANY ALL SOME
All caps
14. Match each of the SQL commands on the left with a verb from the list.
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.
@ or START
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
User-defined reports
15. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
DECODE
The way NULL values are treated
+
Crow's foot
16. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Precision
Groups
STORAGE
Crow's foot
17. What is the keyboard shortcut for the ROLLBACK command?
LENGTH
Precision
Scalar
F12
18. What does SQL stand for?
Surrogate key
ON
Structured Query Language
User-defined reports
19. What is the tab in SQL Developer where data dictionary view information can be found?
Results
@ or START
SYSDATE
Details
20. The _______ operator determines common rows.
NATURAL JOIN
Static or dynamic
Primary key/foreign key
INTERSECT
21. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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
Surrogate
DESC dict;
Recursive
22. The _____________ clause determines how rows are grouped.
Time zone
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.
GROUP BY
23. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Scalar
Inconsistencies
Multiple rows
999999.9999
24. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
V$
Details
Parent table
25. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Inconsistencies
X
FALSE
Retrieve
26. UNION ALL does not sort - therefore it is less time consuming to use than the...
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.
UNION operator
Common column value
Command returns the number of records returned by a query.
27. What is the first column of a composite index called?
Same
Equijoin and correlated subquery
Leading-edge
Extra spaces
28. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Mathematical equations
Fractional seconds
TO_CHAR function
Both MIN and MAX
29. List the reasons that a subquery could not be unnested.
Re-create
Script
TO_CHAR function
X
30. The using clause of the ANSI join syntax always assumes an...
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
The way NULL values are treated
SET clause of an UPDATE statement
Equijoin and identical column names
31. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
Actual column
Nested
Self-joins
32. Explain the steps needed to run a script in SQL Developer
Actual column
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
The way NULL values are treated
33. LINESIZE
BETWEEN
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
FALSE
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
34. Oracle uses the outer join operator to indicate that nulls are shown for...
Orphan
CLOB
DD-MON-YY
Non-matching rows
35. The __________ operator is inclusive of the two values specified.
UTC
@ or START
Mathematical equations
BETWEEN
36. When column names on the tables are different - you use the ______ condition.
Leading-edge
ON
Committed
ROLLBACK
37. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
SELECT SYSDATE+1/96 - FROM dual
Black
INTERSECT
38. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
UTC
RENAME just_two_more_weeks TO finally_i
4000
39. Which format mask displays December 31st - 1999?
Month ddth - yyyy
ON
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
UNION
40. In SQL Developer field names and table names are shown in the color _______.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
RUN SCRIPT
Results
Black
41. Returns rows if the condition is true for all the values in the list
Retrieve
ADD_MONTHS function
Results
All
42. The _______ function adds values together for a group of rows.
Rounded edges
X
SUM
Groups
43. SELECT * FROM instructor ORDER BY phone
Running a script file
A correct statement
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
ANSI
44. NUMBER functions can be...
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.
NATURAL JOIN
Nested
12:00:00 A.M
45. Another name for a data dictionary view is __________________ or _________________.
Logical unit of work
Same
V$
Static or dynamic
46. Converting a text literal to DATE format requires the use of the...
KEEP INDEX
Details
Correlated
TO_CHAR function
47. The purpose of the HAVING clause is to eliminate___________.
X
Mathematical equations
Groups
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.
48. The _______ function lets you perform if-then-else functionality with the SQL language.
UNION operator
DECODE
USER_ - ALL_ - DBA_ - and V$
Actual column
49. __________________ inserts the current date and time.
LENGTH
SYSDATE
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
X
50. A _________ subquery returns a single column with a single row
Twice
Scalar
NATURAL JOIN
BETWEEN