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. What is Oracle's most popular index storage structure?
Testing functions
@ or START
B-Tree Index
UNION operator
2. It is considered good form to put all SQL commands in...
Correlated
DESC dict;
All caps
NATURAL JOIN
3. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Parent table
ON
ROLLBACK
Mathematical equations
4. _________ rows are not allowed in the relational model.
Self-joins
IN ANY ALL SOME
Three
Orphan
5. Which one of the following string functions tells you how many characters are in a string?
X
Location of the file
LENGTH
Optional
6. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Actual column
SELECT DISTINCT menu FROM restaurant
Month ddth - yyyy
Rounded edges
7. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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.
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
Default is 14; when you use the default - you repeat the heading every 14 rows.
8. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
Scalar
UTC
LIKE
9. The using clause of the ANSI join syntax always assumes an...
ADD
RIGHT LEFT JOIN
Equijoin and identical column names
X
10. The ____________ command makes changes permanent.
The way NULL values are treated
COMMIT
Asterisk
DD-MON-YY
11. What does SQL stand for?
FALSE
Equijoin and identical column names
Run scripts
Structured Query Language
12. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Scale
Extra spaces
Surrogate key
Combine
13. PAGESIZE
B-Tree Index
Default is 14; when you use the default - you repeat the heading every 14 rows.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Static or dynamic
14. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Mathematical equations
MINUS
VALUES clause of an INSERT statement
LIKE
15. What do views do that makes them so useful for security?
Hide data
RUN SCRIPT
Crow's foot
IN ANY ALL SOME
16. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Default is 14; when you use the default - you repeat the heading every 14 rows.
F12
Re-create
17. What is the tab in SQL Developer where data dictionary view information can be found?
Groups
Details
Rounded edges
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
18. Checks whether any value in the list makes the condition true.
Running a script file
Semicolon or forward slash
Any
Extra spaces
19. Subqueries can return...
X
Groups
Multiple rows
ANSI
20. _________________ relationships are always optional relationships.
TO_CHAR function
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Recursive
F12
21. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Precision
All
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
22. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Parent table
SUM
The indexed column is part of an expression. In this case - consider creating a function-based index instead
NATURAL JOIN
23. What are the main components of a ROWID?
STORAGE
999999.9999
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.
DESC dict;
24. Explain how the SPOOL command is used and what program it can be used in.
Recursive
X
Surrogate
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
25. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
USER_ - ALL_ - DBA_ - and V$
DICTIONARY
MODIFY
26. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Re-create
Structured Query Language
Recursive
Correlated
27. List the steps performed by a correlated subquery.
Another null
**** 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
Recursive
Committed
28. The purpose of the HAVING clause is to eliminate___________.
Testing functions
99.99
Groups
SELECT SYSDATE+1/96 - FROM dual
29. Write a solution that adds 20 minutes to a given date.
INNER JOIN
SELECT SYSDATE+1/96 - FROM dual
Parent table
Multiple rows
30. LINESIZE
ALL_OBJECTS
Logical unit of work
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
MODIFY
31. The focus of the logical data model is _____________
12:00:00 A.M
DICTIONARY
Business problems
Groups
32. A _________ subquery returns a single column with a single row
Crow's foot
Equijoin and identical column names
4
Scalar
33. 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
34. Self-joins are useful for performing comparisons and checking for ___________ in data.
Time zone
@ or START
Inconsistencies
SYSDATE
35. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
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
Running a script file
Primary key/foreign key
VALUES clause of an INSERT statement
36. To restart a sequence at a lower number - you can drop and ________ the sequence.
Re-create
Null
Command returns the number of records returned by a query.
Testing functions
37. The ______ operator compares a list of values for equivalency
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
DD-MON-YY
ANY
All caps
38. A calculation with a null always yields...
Another null
RIGHT LEFT JOIN
The way NULL values are treated
Scale
39. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
UNION operator
Semicolon or forward slash
INNER JOIN
BETWEEN
40. Write the syntax to rename index just_two_more_weeks_i to finally_i
X
RENAME just_two_more_weeks TO finally_i
Multiple rows
All caps
41. What is the first column of a composite index called?
ANSI
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.
99.99
Leading-edge
42. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Correlated
ROLLBACK
Inconsistencies
Nested
43. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
VALUES clause of an INSERT statement
Optional
Logical unit of work
FALSE
44. 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
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.
Results
+
45. Write a statement that drops the index need_to_pass_i
Extra spaces
Location of the file
DROP INDEX need_to_pass_i
LENGTH
46. What does the following function return? SELECT LENGTH(NULL) - FROM dual
LIKE
Scale
Null
All caps
47. In SQL Developer field names and table names are shown in the color _______.
ANY
Black
USER_ - ALL_ - DBA_ - and V$
Scalar
48. NUMBER functions can be...
Multiple rows
Nested
Data
Has not changed the name
49. Checks whether any value in the list makes the condition true.
Inconsistencies
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
Committed
Any
50. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
Testing functions
Hide data
4