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 term ____________ ___________ is used to express a join that satisfies the join condition.
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.
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
INNER JOIN
Combine
2. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
99.99
4000
Re-create
Both MIN and MAX
3. Which format mask displays December 31st - 1999?
RENAME just_two_more_weeks TO finally_i
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.
Month ddth - yyyy
X
4. List the steps performed by a correlated subquery.
UNION
**** 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
VALUES clause of an INSERT statement
SYSDATE
5. What is the data type you can use if you need an unlimited number of textual characters?
STORAGE
@ or START
CLOB
DROP INDEX need_to_pass_i
6. Returns rows if the condition is true for all the values in the list
All
Combine
X
Retrieve
7. Subqueries can return...
Multiple rows
Any
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Implicit conversion
8. Write the syntax to rename index just_two_more_weeks_i to finally_i
Columns
RENAME just_two_more_weeks TO finally_i
Location of the file
BETWEEN
9. The purpose of the HAVING clause is to eliminate___________.
Run scripts
RIGHT LEFT JOIN
MODIFY
Groups
10. Write a statement that drops the index need_to_pass_i
Hide data
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
VALUES clause of an INSERT statement
DROP INDEX need_to_pass_i
11. A join across three tables can be expressed with the ________ join syntax.
ANSI
DD-MON-YY
Extra spaces
Leading-edge
12. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
ON
999999.9999
All caps
Surrogate
13. In SQL Developer field names and table names are shown in the color _______.
TO_CHAR function
Black
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
DD-MON-YY
14. The _____________ clause determines how rows are grouped.
User-defined reports
GROUP BY
Multiple rows
FALSE
15. The same function can be used ______ in a SELECT statement.
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
2000
Twice
Both MIN and MAX
16. PAGESIZE
The way NULL values are treated
Export Data
Default is 14; when you use the default - you repeat the heading every 14 rows.
99.99
17. The key that most database designers prefer and is chosen by the system is the _____________ key.
UTC
12:00:00 A.M
Surrogate
Combine
18. The using clause of the ANSI join syntax always assumes an...
Details
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Equijoin and identical column names
A correct statement
19. Explain what is found in the All Objects report folder in SQL Developer
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Equijoin and identical column names
A correct statement
Nested
20. Write a solution that adds 20 minutes to a given date.
INTERSECT
DICT_COLUMNS
SELECT SYSDATE+1/96 - FROM dual
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
21. Self-joins are useful for performing comparisons and checking for ___________ in data.
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.
IN ANY ALL SOME
Inconsistencies
All
22. SELECT LIST of a subquery in an INSERT statement
Leading-edge
ALL_OBJECTS
X
SET clause of an UPDATE statement
23. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
Any
ROLLBACK
VALUES
24. What is the first column of a composite index called?
Location of the file
Mathematical equations
MODIFY
Leading-edge
25. 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
26. What is Oracle's most popular index storage structure?
B-Tree Index
Details
DICTIONARY
Another null
27. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Re-create
Optional
Run scripts
All caps
28. What is the name of the key automatically generated from a sequence?
Inconsistencies
DICTIONARY
Extra spaces
Surrogate key
29. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
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
Fractional seconds
VALUES
Scale
30. The _______ function adds values together for a group of rows.
Any
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
SUM
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.
31. The ALTER SESSION statement can change the session's...
4000
Time zone
Logical unit of work
STORAGE
32. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
UNION operator
Script
Nested
Same
33. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
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.
Semicolon or forward slash
34. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
MINUS
User-defined reports
ADD
35. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
NATURAL JOIN
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
Retrieve
36. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
Script
V$
Hide data
37. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Same
Semicolon or forward slash
X
All caps
38. The query retrieves more than 5 to 15 percent of the rows
Results
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.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Static or dynamic
39. What are the main components of a ROWID?
Run scripts
V$
SELECT DISTINCT menu FROM restaurant
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.
40. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Structured Query Language
DECODE
ROLLBACK
Correlated
41. Explain the steps needed to run a script in SQL Developer
ADD_MONTHS function
Self-joins
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.
Time zone
42. Queries that are found in parentheses are done first - just as in the order of operations when doing...
ANSI
LIKE
Mathematical equations
F12
43. The __________ operator is inclusive of the two values specified.
Mathematical equations
Equijoin and correlated subquery
RIGHT LEFT JOIN
BETWEEN
44. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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
Asterisk
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.
45. Comparison operators can compare multiple _________________.
Columns
**** 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
Results
Leading-edge
46. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Asterisk
Self-joins
4000
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
47. The TRUNC function on a date without a format model truncates the timestamp to...
TO_CHAR function
12:00:00 A.M
ROLLBACK
Recursive
48. _________________ relationships are always optional relationships.
Fractional seconds
Business problems
Has not changed the name
Recursive
49. To join four tables - you must have at least _____ join conditions.
Running a script file
X
Implicit conversion
Three
50. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Static or dynamic
ON
VALUES clause of an INSERT statement
SELECT DISTINCT menu FROM restaurant