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. Dynamic views begin with a ___________.
Correlated
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.
Scale
V$
2. UNION ALL does not sort - therefore it is less time consuming to use than the...
Null
UNION operator
LENGTH
ON
3. FEEDBACK
ADD
Command returns the number of records returned by a query.
VALUES clause of an INSERT statement
Surrogate key
4. Subqueries can return...
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
Asterisk
Multiple rows
LIKE
5. Write a statement for SQL*Plus that shows the dictionary.
BETWEEN
DESC dict;
12:00:00 A.M
999999.9999
6. The ________ operator cannot compare against a list of values.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Equijoin
Twice
LIKE
7. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
Optional
DD-MON-YY
LENGTH
8. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Static or dynamic
Orphan
Fractional seconds
Location of the file
9. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.
ALL_OBJECTS
FALSE
Leading-edge
INNER JOIN
10. List 6 Table-Related Menu Choices
ADD_MONTHS function
B-Tree Index
RUN SCRIPT
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
11. What is the tab in SQL Developer where data dictionary view information can be found?
X
Parent table
Scalar
Details
12. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
STORAGE
Surrogate
Inconsistencies
Equijoin and correlated subquery
13. What is the keyboard shortcut for the ROLLBACK command?
Precision
UNION
Common column value
F12
14. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
ANSI
RUN SCRIPT
Equijoin
Groups
15. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
Any
RIGHT LEFT JOIN
The way NULL values are treated
Fractional seconds
16. Which operator is most commonly used?
Parent table
UNION
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.
LENGTH
17. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
SELECT DISTINCT menu FROM restaurant
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Structured Query Language
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. Users can only see changes made to a database once they have been...
Committed
X
Parent table
VALUES
19. Another name for a data dictionary view is __________________ or _________________.
Has not changed the name
Orphan
**** 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
Static or dynamic
20. The term ____________ ___________ is used to express a join that satisfies the join condition.
Primary key/foreign key
FALSE
INNER JOIN
A correct statement
21. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
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.
X
Black
Business problems
22. What is the main difference between the NOT EXISTS and the NOT IN operators?
USER_ - ALL_ - DBA_ - and V$
Running a script file
ROLLBACK
The way NULL values are treated
23. 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.
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.
Optional
4000
VALUES
24. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Primary key/foreign key
Results
TO_CHAR function
+
25. Checks whether any value in the list makes the condition true.
All caps
SYSDATE
Results
Any
26. What is the most common DATE format found in SQL?
DD-MON-YY
Re-create
Script
Null
27. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Equijoin and correlated subquery
Orphan
Time zone
Export Data
28. 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?
Testing functions
Hide data
DICTIONARY
RUN SCRIPT
29. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Actual column
X
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.
30. List 4 aggregate functions
ALL_OBJECTS
Fractional seconds
Month ddth - yyyy
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
31. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
DESC dict;
MODIFY
Has not changed the name
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. A calculation with a null always yields...
SET clause of an UPDATE statement
Another null
BETWEEN
Crow's foot
34. The COUNT function is useful for determining whether a table has...
INTERSECT
Data
Equijoin and correlated subquery
RUN SCRIPT
35. Explain how the SPOOL command is used and what program it can be used in.
BETWEEN
Month ddth - yyyy
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
DROP INDEX need_to_pass_i
36. Which format mask displays December 31st - 1999?
Month ddth - yyyy
X
4000
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
37. The _______ function lets you perform if-then-else functionality with the SQL language.
DESC dict;
DECODE
Fractional seconds
Business problems
38. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Columns
ANSI
NATURAL JOIN
Crow's foot
39. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
Month ddth - yyyy
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Leading-edge
40. A transaction is a...
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.
Logical unit of work
Run scripts
Equijoin and correlated subquery
41. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Results
Surrogate key
999999.9999
IN ANY ALL SOME
42. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
Precision
Structured Query Language
Parent table
43. You can use the ________________ to subtract months from a given date.
Inconsistencies
Details
ADD_MONTHS function
SELECT DISTINCT menu FROM restaurant
44. How many characters can you have using the VARCHAR data type?
Command returns the number of records returned by a query.
TO_CHAR function
NATURAL JOIN
4000
45. Checks whether any value in the list makes the condition true.
VALUES
Committed
Any
MINUS
46. Joins involving multiple columns must always follow the ____________ relationship path.
GROUP BY
Re-create
LIKE
Primary key/foreign key
47. Oracle uses the outer join operator to indicate that nulls are shown for...
INNER JOIN
X
Non-matching rows
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
48. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
UNION operator
Primary key/foreign key
Null
VALUES clause of an INSERT statement
49. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
DROP INDEX need_to_pass_i
FALSE
Run scripts
STORAGE
50. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Scale
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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Run scripts