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. List the different types of data dictionary views.
NATURAL JOIN
ADD
USER_ - ALL_ - DBA_ - and V$
Columns
2. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
Logical unit of work
Surrogate key
Extra spaces
3. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
Non-matching rows
SELECT SYSDATE+1/96 - FROM dual
UTC
4. The COUNT function uses the __________ wildcard.
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.
UNION operator
Twice
Asterisk
5. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Time zone
Rounded edges
ALL_OBJECTS
Mathematical equations
6. 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.
Black
User-defined reports
STORAGE
RIGHT LEFT JOIN
7. SELECT * FROM instructor ORDER BY phone
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.
A correct statement
Self-joins
DECODE
8. What is the keyboard shortcut for the ROLLBACK command?
F12
X
Semicolon or forward slash
Export Data
9. Write a statement that drops the index need_to_pass_i
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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.
DROP INDEX need_to_pass_i
RUN SCRIPT
10. Dynamic views begin with a ___________.
V$
Rounded edges
2000
ANSI
11. What is the name of the key automatically generated from a sequence?
Leading-edge
Scalar
Columns
Surrogate key
12. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
FALSE
Groups
Export Data
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
13. Write a solution that adds 20 minutes to a given date.
All
Columns
SELECT SYSDATE+1/96 - FROM dual
Logical unit of work
14. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
KEEP INDEX
Correlated
B-Tree Index
Script
15. The __________ operator is inclusive of the two values specified.
99.99
SELECT SYSDATE+1/96 - FROM dual
MINUS
BETWEEN
16. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
Both MIN and MAX
SELECT DISTINCT menu FROM restaurant
User-defined reports
17. A transaction is a...
Logical unit of work
COMMIT
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Running a script file
18. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Actual column
Semicolon or forward slash
Multiple rows
4
19. The _____________ clause determines how rows are grouped.
Asterisk
RUN SCRIPT
Logical unit of work
GROUP BY
20. Which operator is most commonly used?
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Groups
UNION
@ or START
21. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Self-joins
User-defined reports
VALUES clause of an INSERT statement
4000
22. A calculation with a null always yields...
Another null
Structured Query Language
Any
Export Data
23. Match each of the SQL commands on the left with a verb from the list.
DROP INDEX need_to_pass_i
Business problems
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ALL_OBJECTS
24. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
The way NULL values are treated
INNER JOIN
Has not changed the name
25. What is the tab in SQL Developer where data dictionary view information can be found?
+
USER_ - ALL_ - DBA_ - and V$
ADD_MONTHS function
Details
26. In SQL Developer field names and table names are shown in the color _______.
Black
Twice
SELECT SYSDATE+1/96 - FROM dual
4
27. The term ____________ ___________ is used to express a join that satisfies the join condition.
Multiple rows
IN ANY ALL SOME
INNER JOIN
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.
28. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
4
Combine
Common column value
29. The query retrieves more than 5 to 15 percent of the rows
Null
VALUES
The indexed column is part of an expression. In this case - consider creating a function-based index instead
USER_ - ALL_ - DBA_ - and V$
30. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
A correct statement
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
BETWEEN
31. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
Null
INTERSECT
UNION
32. NUMBER functions can be...
Default is 14; when you use the default - you repeat the heading every 14 rows.
DECODE
Mathematical equations
Nested
33. The _______ function adds values together for a group of rows.
FALSE
ON
SUM
The indexed column is part of an expression. In this case - consider creating a function-based index instead
34. The key that most database designers prefer and is chosen by the system is the _____________ 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
Surrogate
DD-MON-YY
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
35. A _________ subquery returns a single column with a single row
Scalar
SUM
Data
Static or dynamic
36. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Extra spaces
Export Data
Semicolon or forward slash
X
37. The time zone displacement value indicates the time difference from _______.
UTC
SELECT SYSDATE+1/96 - FROM dual
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.
INNER JOIN
38. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
The way NULL values are treated
User-defined reports
Optional
FALSE
39. Explain what a static data dictionary view is and how it is used
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.
VALUES
LENGTH
Business problems
40. When you run a script in SQL*Plus you must give the...
**** 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
Scale
Location of the file
Equijoin
41. FEEDBACK
Details
Command returns the number of records returned by a query.
+
LIKE
42. You use the __________ keyword to change characteristics of a column.
UNION
Rounded edges
VALUES
MODIFY
43. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Scale
SELECT DISTINCT menu FROM restaurant
Rounded edges
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.
44. The _______ function lets you perform if-then-else functionality with the SQL language.
ANY
DECODE
STORAGE
KEEP INDEX
45. The COUNT function is useful for determining whether a table has...
DESC dict;
Nested
Data
COMMIT
46. What is the first column of a composite index called?
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
STORAGE
Leading-edge
Non-matching rows
47. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Multiple rows
Combine
Scale
SELECT DISTINCT menu FROM restaurant
48. The DUAL table can be used for...
All caps
Testing functions
Surrogate
Script
49. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.
CLOB
@ or START
Retrieve
FALSE
50. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
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.
Committed
Correlated
X