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. Write a solution that adds 20 minutes to a given date.
FALSE
@ or START
SELECT SYSDATE+1/96 - FROM dual
Hide data
2. NUMBER functions can be...
SYSDATE
Nested
Hide data
A correct statement
3. Write a statement that drops the index need_to_pass_i
UNION
SELECT SYSDATE+1/96 - FROM dual
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.
DROP INDEX need_to_pass_i
4. PAGESIZE
All
Default is 14; when you use the default - you repeat the heading every 14 rows.
Mathematical equations
Asterisk
5. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
Same
Recursive
Black
6. Explain how the SPOOL command is used and what program it can be used in.
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
Testing functions
Logical unit of work
Business problems
7. The ______ depicts the M of a 1:M relationship.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. What is the name of the view where you can find the collection of static and data dictionary tables and views - along with their descriptions?
Constraints are used to enforce the business rules of a system. For instance - 'The salary of an employee may not be a negative number' may be enforced with a check constraint on the salary column. Constraints also ensure integrity and data consisten
DICT_COLUMNS
The way NULL values are treated
DICTIONARY
9. Converting a text literal to DATE format requires the use of the...
Export Data
TO_CHAR function
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Any
10. Self-joins are useful for performing comparisons and checking for ___________ in data.
Correlated
Precision
Inconsistencies
User-defined reports
11. Returns rows if the condition is true for all the values in the list
GROUP BY
Export Data
All
999999.9999
12. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Has not changed the name
Both MIN and MAX
Asterisk
Results
13. Queries that are found in parentheses are done first - just as in the order of operations when doing...
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
Mathematical equations
Equijoin and correlated subquery
Any
14. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
DICTIONARY
Month ddth - yyyy
15. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Correlated
STORAGE
Script
+
16. The _______ function adds values together for a group of rows.
Crow's foot
Any
SUM
ROLLBACK
17. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Rounded edges
SELECT DISTINCT menu FROM restaurant
Three
Null
18. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
NATURAL JOIN
Combine
User-defined reports
ON
19. What is the main difference between the NOT EXISTS and the NOT IN operators?
RENAME just_two_more_weeks TO finally_i
Nested
ANSI
The way NULL values are treated
20. The COUNT function uses the __________ wildcard.
Month ddth - yyyy
Twice
Asterisk
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
21. Dynamic views begin with a ___________.
Common column value
DICT_COLUMNS
V$
ALL_OBJECTS
22. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
GROUP BY
Time zone
Equijoin
23. List the steps performed by a correlated subquery.
Time zone
Parent table
**** 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
F12
24. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Non-matching rows
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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
25. What is the maximum value for a column defined as NUMBER(4 -2)?
Both MIN and MAX
99.99
Script
RIGHT LEFT JOIN
26. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Scale
Optional
FALSE
Twice
27. List 4 aggregate functions
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Testing functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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. The _______ operator determines common rows.
Both MIN and MAX
INTERSECT
IN ANY ALL SOME
DICT_COLUMNS
29. The COUNT function is useful for determining whether a table has...
Asterisk
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Data
Null
30. Checks whether any value in the list makes the condition true.
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
RUN SCRIPT
Any
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.
31. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Details
Retrieve
KEEP INDEX
Correlated
32. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Recursive
Equijoin
MODIFY
+
33. What is the data type you can use if you need an unlimited number of textual characters?
MINUS
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.
CLOB
+
34. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
X
Results
Month ddth - yyyy
35. The RTRIM function is useful for eliminating ________ in a string.
Business problems
ADD
Extra spaces
Actual column
36. 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
37. 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
The way NULL values are treated
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
38. What do views do that makes them so useful for security?
RUN SCRIPT
Data
Hide data
DROP INDEX need_to_pass_i
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.
Structured Query Language
CLOB
UNION operator
40. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.
VALUES
Command returns the number of records returned by a query.
Export Data
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.
41. The __________ operator is inclusive of the two values specified.
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.
SUM
Scalar
42. The ALTER SESSION statement can change the session's...
Time zone
Orphan
SUM
Surrogate key
43. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
DESC dict;
Parent table
4000
44. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ALL_OBJECTS
UNION operator
45. The _______ function lets you perform if-then-else functionality with the SQL language.
Data
Multiple rows
DECODE
Re-create
46. What is the first column of a composite index called?
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
Leading-edge
FALSE
X
47. What is Oracle's most popular index storage structure?
B-Tree Index
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
Optional
Asterisk
48. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Equijoin
DECODE
999999.9999
Null
49. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
IN ANY ALL SOME
Testing functions
RUN SCRIPT
Export Data
50. The purpose of the HAVING clause is to eliminate___________.
SET clause of an UPDATE statement
Groups
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Multiple rows