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. NUMBER functions can be...
Both MIN and MAX
DICT_COLUMNS
Nested
ALL_OBJECTS
2. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
DESC dict;
SELECT DISTINCT menu FROM restaurant
Hide data
ROLLBACK
3. The key that most database designers prefer and is chosen by the system is the _____________ key.
LIKE
SELECT SYSDATE+1/96 - FROM dual
99.99
Surrogate
4. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
DICTIONARY
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.
Default is 14; when you use the default - you repeat the heading every 14 rows.
5. 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
6. ____________ are useful for analyzing and exploring the relationships within your data
RENAME just_two_more_weeks TO finally_i
Self-joins
DECODE
User-defined reports
7. The purpose of the HAVING clause is to eliminate___________.
VALUES clause of an INSERT statement
Twice
Script
Groups
8. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
DD-MON-YY
CLOB
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.
9. The focus of the logical data model is _____________
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Testing functions
Business problems
Same
10. In a view you can give a column a different name than it has in the...
Parent table
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.
Crow's foot
SELECT DISTINCT menu FROM restaurant
11. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Null
User-defined reports
@ or START
Static or dynamic
12. How many characters can you have using the VARCHAR data type?
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
4000
Export Data
13. It is considered good form to put all SQL commands in...
SELECT DISTINCT menu FROM restaurant
X
Recursive
All caps
14. You use the __________ keyword to change characteristics of a column.
SELECT DISTINCT menu FROM restaurant
Surrogate key
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
MODIFY
15. A transaction is a...
Scalar
UNION operator
Testing functions
Logical unit of work
16. Write the syntax to rename index just_two_more_weeks_i to finally_i
Another null
Script
RENAME just_two_more_weeks TO finally_i
ANSI
17. SELECT * FROM instructor ORDER BY phone
Any
When the table is small (unless your business rules require you too)
Nested
A correct statement
18. List the different types of data dictionary views.
Orphan
USER_ - ALL_ - DBA_ - and V$
ADD
Business problems
19. The same function can be used ______ in a SELECT statement.
Twice
TO_CHAR function
Null
Surrogate
20. Dynamic views begin with a ___________.
Common column value
V$
CLOB
Command returns the number of records returned by a query.
21. Write a statement for SQL*Plus that shows the dictionary.
Precision
Scalar
ADD_MONTHS function
DESC dict;
22. The ROWID pseudocolumn is not an ________- but it acts like one.
User-defined reports
ON
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.
Actual column
23. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Surrogate key
VALUES
Inconsistencies
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
24. Another name for a data dictionary view is __________________ or _________________.
ON
Twice
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.
Static or dynamic
25. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
4000
Correlated
Columns
SUM
26. Explain what is found in the All Objects report folder in SQL Developer
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.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
B-Tree Index
Equijoin
27. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
STORAGE
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
Retrieve
28. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Surrogate key
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
X
Location of the file
29. PAGESIZE
4000
Default is 14; when you use the default - you repeat the heading every 14 rows.
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
DICTIONARY
30. A join across three tables can be expressed with the ________ join syntax.
99.99
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.
ANSI
Both MIN and MAX
31. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Extra spaces
UNION operator
Another null
32. 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
33. LINESIZE
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.
All
INNER JOIN
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
34. You can use the ________________ to subtract months from a given date.
ADD_MONTHS function
UNION
Implicit conversion
SUM
35. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Surrogate
Mathematical equations
Nested
NATURAL JOIN
36. The time zone displacement value indicates the time difference from _______.
Data
UTC
DD-MON-YY
X
37. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Export Data
ADD_MONTHS function
Non-matching rows
LENGTH
38. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
All caps
Month ddth - yyyy
BETWEEN
+
39. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Combine
Scale
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.
VALUES
40. What is the first column of a composite index called?
Leading-edge
SELECT DISTINCT menu FROM restaurant
Correlated
Three
41. The query retrieves more than 5 to 15 percent of the rows
X
The indexed column is part of an expression. In this case - consider creating a function-based index instead
INNER JOIN
2000
42. Explain how the SPOOL command is used and what program it can be used in.
Asterisk
SYSDATE
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
V$
43. What is the name of the key automatically generated from a sequence?
Semicolon or forward slash
Surrogate key
Implicit conversion
COMMIT
44. To join four tables - you must have at least _____ join conditions.
Inconsistencies
Three
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
IN ANY ALL SOME
45. FEEDBACK
Command returns the number of records returned by a query.
UTC
Combine
Time zone
46. SELECT LIST of a subquery in an INSERT statement
Has not changed the name
Black
SET clause of an UPDATE statement
DD-MON-YY
47. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
LENGTH
Equijoin
4
Same
48. What do views do that makes them so useful for security?
UNION
Hide data
Black
Orphan
49. List the steps performed by a correlated subquery.
ANSI
**** 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
X
V$
50. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
DICT_COLUMNS
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.
Fractional seconds
Multiple rows