SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
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 the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Month ddth - yyyy
IN ANY ALL SOME
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
2. The _______ function adds values together for a group of rows.
Self-joins
Results
IN ANY ALL SOME
SUM
3. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Any
Same
KEEP INDEX
Details
4. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Surrogate
X
Testing functions
Equijoin and correlated subquery
5. The ________ operator cannot compare against a list of values.
Inconsistencies
LIKE
USER_ - ALL_ - DBA_ - and V$
FALSE
6. What is Oracle's most popular index storage structure?
Re-create
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Self-joins
B-Tree Index
7. The same function can be used ______ in a SELECT statement.
Twice
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Asterisk
@ or START
8. SQL*Plus is used more than SQL Developer when you need to...
Static or dynamic
**** 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
TO_CHAR function
Run scripts
9. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
RUN SCRIPT
Equijoin
RIGHT LEFT JOIN
Rounded edges
10. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
DROP INDEX need_to_pass_i
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
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Optional
11. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
DECODE
Has not changed the name
DESC dict;
12. How many characters can you have using the VARCHAR data type?
NATURAL JOIN
Retrieve
Running a script file
4000
13. When you run a script in SQL*Plus you must give the...
B-Tree Index
99.99
TO_CHAR function
Location of the file
14. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
BETWEEN
ADD
4
15. Which format mask displays December 31st - 1999?
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Retrieve
Month ddth - yyyy
Columns
16. The TRUNC function on a date without a format model truncates the timestamp to...
MINUS
12:00:00 A.M
TO_CHAR function
DROP INDEX need_to_pass_i
17. Match each of the SQL commands on the left with a verb from the list.
Optional
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
Equijoin
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
18. SELECT * FROM instructor ORDER BY phone
GROUP BY
Inconsistencies
A correct statement
ANY
19. The ____________ command makes changes permanent.
Surrogate key
Actual column
COMMIT
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
20. When column names on the tables are different - you use the ______ condition.
ON
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.
TO_CHAR function
Implicit conversion
21. Users can only see changes made to a database once they have been...
Command returns the number of records returned by a query.
Committed
Mathematical equations
STORAGE
22. The focus of the logical data model is _____________
DICT_COLUMNS
Script
Business problems
ON
23. Explain why constraints are used when building tables.
24. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Running a script file
Another null
Results
Data
25. The ______ operator compares a list of values for equivalency
DROP INDEX need_to_pass_i
Common column value
ANY
Combine
26. List 4 aggregate functions
VALUES
Surrogate
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
COMMIT
27. A _________ subquery returns a single column with a single row
Scalar
Surrogate
MODIFY
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
28. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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
Any
UNION
29. Explain how Substitution Variables are used when writing scripts.
Precision
@ or START
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.
IN ANY ALL SOME
30. Explain what a static data dictionary view is and how it is used
Implicit conversion
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 DISTINCT menu FROM restaurant
STORAGE
31. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
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.
BETWEEN
Business problems
32. List 6 Table-Related Menu Choices
A correct statement
Running a script file
BETWEEN
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
33. The COUNT function uses the __________ wildcard.
F12
Asterisk
DICTIONARY
VALUES
34. To equijoin a table with another table involves matching the...
Common column value
RIGHT LEFT JOIN
Equijoin and correlated subquery
KEEP INDEX
35. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
ADD_MONTHS function
UNION operator
Nested
Scale
36. Joins involving multiple columns must always follow the ____________ relationship path.
RUN SCRIPT
BETWEEN
MINUS
Primary key/foreign key
37. What is the keyboard shortcut for the ROLLBACK command?
ANY
F12
Asterisk
RUN SCRIPT
38. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
Results
Has not changed the name
BETWEEN
39. The key that most database designers prefer and is chosen by the system is the _____________ key.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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.
KEEP INDEX
Surrogate
40. A join across three tables can be expressed with the ________ join syntax.
Groups
Committed
X
ANSI
41. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
X
Script
Actual column
FALSE
42. PAGESIZE
Mathematical equations
X
Default is 14; when you use the default - you repeat the heading every 14 rows.
Business problems
43. Subqueries can return...
Multiple rows
Data
Surrogate
Parent table
44. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
DECODE
TO_CHAR function
Export Data
@ or START
45. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
User-defined reports
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ANY
46. It is considered good form to put all SQL commands in...
RIGHT LEFT JOIN
All caps
Crow's foot
ROLLBACK
47. The _______ function lets you perform if-then-else functionality with the SQL language.
ANSI
Combine
Columns
DECODE
48. The __________ operator is inclusive of the two values specified.
2000
BETWEEN
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.
Orphan
49. Explain in detail the impact of INDEXES and how they are used by Oracle.
All caps
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
SET clause of an UPDATE statement
Optional
50. Oracle uses the outer join operator to indicate that nulls are shown for...
SELECT DISTINCT menu FROM restaurant
VALUES
Non-matching rows
Time zone