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. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
VALUES clause of an INSERT statement
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Correlated
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
2. Which one of the following string functions tells you how many characters are in a string?
FALSE
Both MIN and MAX
BETWEEN
LENGTH
3. The query retrieves more than 5 to 15 percent of the rows
VALUES
Twice
Extra spaces
The indexed column is part of an expression. In this case - consider creating a function-based index instead
4. The same function can be used ______ in a SELECT statement.
Twice
X
+
Crow's foot
5. Explain what a static data dictionary view is and how it is used
4
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.
V$
Equijoin and correlated subquery
6. 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
7. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Rounded edges
FALSE
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
ALL_OBJECTS
8. A _________ subquery returns a single column with a single row
+
Scalar
Mathematical equations
Recursive
9. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Run scripts
Equijoin and correlated subquery
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
Optional
10. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
ON
Extra spaces
Another null
11. What is the main difference between the NOT EXISTS and the NOT IN operators?
DESC dict;
ADD_MONTHS function
Multiple rows
The way NULL values are treated
12. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
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.
Equijoin
Recursive
13. The ______ operator compares a list of values for equivalency
ADD
ANY
Running a script file
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.
14. FEEDBACK
ANY
Null
Command returns the number of records returned by a query.
Hide data
15. What is the tab in SQL Developer where data dictionary view information can be found?
UNION operator
Details
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
BETWEEN
16. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
DROP INDEX need_to_pass_i
NATURAL JOIN
@ or START
Correlated
17. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
F12
Time zone
Equijoin and correlated subquery
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
18. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
STORAGE
DD-MON-YY
Has not changed the name
19. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
X
Three
Primary key/foreign key
20. Self-joins are useful for performing comparisons and checking for ___________ in data.
Both MIN and MAX
+
Inconsistencies
INNER JOIN
21. When column names on the tables are different - you use the ______ condition.
BETWEEN
ON
RIGHT LEFT JOIN
STORAGE
22. List the reasons that a subquery could not be unnested.
Scale
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.
X
Groups
23. A transaction is a...
Logical unit of work
Run scripts
The way NULL values are treated
When the table is small (unless your business rules require you too)
24. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Committed
BETWEEN
Rounded edges
Inconsistencies
25. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
DD-MON-YY
RIGHT LEFT JOIN
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.
26. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
User-defined reports
ROLLBACK
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
LENGTH
27. ____________ are useful for analyzing and exploring the relationships within your data
COMMIT
Script
Self-joins
Run scripts
28. How many characters can you have using the VARCHAR data type?
NATURAL JOIN
Scalar
V$
4000
29. In a view you can give a column a different name than it has in the...
Parent table
4
99.99
BETWEEN
30. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
KEEP INDEX
Business problems
TO_CHAR function
31. Another name for a data dictionary view is __________________ or _________________.
Correlated
X
999999.9999
Static or dynamic
32. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
ROLLBACK
Logical unit of work
VALUES
User-defined reports
33. What does SQL stand for?
Data
Structured Query Language
ALL_OBJECTS
Parent table
34. When you run a script in SQL*Plus you must give the...
Location of the file
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Asterisk
NATURAL JOIN
35. List the steps performed by a correlated subquery.
All caps
**** 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
+
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
36. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
Static or dynamic
BETWEEN
FALSE
37. __________________ inserts the current date and time.
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.
INTERSECT
SYSDATE
Self-joins
38. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
SELECT DISTINCT menu FROM restaurant
VALUES clause of an INSERT statement
+
Actual column
39. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
Multiple rows
Optional
UNION operator
40. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
VALUES clause of an INSERT statement
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.
Rounded edges
41. What are the main components of a ROWID?
UNION
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.
X
LIKE
42. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
Scalar
Black
Three
43. Explain what is found in the All Objects report folder in SQL Developer
B-Tree Index
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Equijoin and identical column names
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. Explain in detail the impact of INDEXES and how they are used by Oracle.
Retrieve
ANSI
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
Precision
45. PAGESIZE
X
Black
Default is 14; when you use the default - you repeat the heading every 14 rows.
SYSDATE
46. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Common column value
STORAGE
Correlated
Null
47. Users can only see changes made to a database once they have been...
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Committed
FALSE
DECODE
48. The ___________ operator tests whether a matching row cannot be found.
X
Crow's foot
NATURAL JOIN
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
49. Checks whether any value in the list makes the condition true.
Any
Mathematical equations
Three
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.
50. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
Orphan
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.
STORAGE