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. Checks whether any value in the list makes the condition true.
**** 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
SYSDATE
Any
Leading-edge
2. 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.
RIGHT LEFT JOIN
Three
Details
Mathematical equations
3. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
KEEP INDEX
All caps
SELECT DISTINCT menu FROM restaurant
4. What does SQL stand for?
Structured Query Language
DESC dict;
999999.9999
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
5. Checks whether any value in the list makes the condition true.
All
X
Parent table
Any
6. The key that most database designers prefer and is chosen by the system is the _____________ key.
Scale
Surrogate
INTERSECT
FALSE
7. __________________ inserts the current date and time.
SYSDATE
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.
2000
FALSE
8. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Precision
ALL_OBJECTS
UNION
IN ANY ALL SOME
9. When is it not a good idea to use an index?
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
When the table is small (unless your business rules require you too)
All caps
Results
10. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
RUN SCRIPT
Retrieve
GROUP BY
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
11. A calculation with a null always yields...
Another null
Equijoin and identical column names
Asterisk
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
12. List 6 Table-Related Menu Choices
4
X
Correlated
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
13. The using clause of the ANSI join syntax always assumes an...
Equijoin and identical column names
Leading-edge
Location of the file
ANY
14. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
X
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
2000
KEEP INDEX
15. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Any
V$
4
LENGTH
16. The ___________ operator tests whether a matching row cannot be found.
X
DROP INDEX need_to_pass_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.
+
17. 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
18. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Orphan
DECODE
Export Data
Common column value
19. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
F12
Black
Twice
20. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Both MIN and MAX
RUN SCRIPT
All
21. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
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
Month ddth - yyyy
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
22. It is considered good form to put all SQL commands in...
All caps
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
Location of the file
BETWEEN
23. Match each of the SQL commands on the left with a verb from the list.
IN ANY ALL SOME
**** 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
DICTIONARY
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
24. The COUNT function is useful for determining whether a table has...
Primary key/foreign key
Inconsistencies
Data
ADD
25. The time zone displacement value indicates the time difference from _______.
V$
NATURAL JOIN
SELECT SYSDATE+1/96 - FROM dual
UTC
26. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Columns
STORAGE
Data
27. To restart a sequence at a lower number - you can drop and ________ the sequence.
Semicolon or forward slash
Export Data
LENGTH
Re-create
28. What is the keyboard shortcut for the ROLLBACK command?
99.99
F12
ON
Inconsistencies
29. Explain the steps needed to run a script 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.
Three
Actual column
Self-joins
30. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
@ or START
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.
Leading-edge
31. Dynamic views begin with a ___________.
Null
V$
User-defined reports
Crow's foot
32. What does the following function return? SELECT LENGTH(NULL) - FROM dual
+
Null
ANY
Precision
33. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
999999.9999
Run scripts
Crow's foot
34. _________________ relationships are always optional relationships.
X
Recursive
INNER JOIN
Both MIN and MAX
35. Oracle uses the outer join operator to indicate that nulls are shown for...
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
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.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Non-matching rows
36. A _________ subquery returns a single column with a single row
IN ANY ALL SOME
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Scalar
UTC
37. 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?
Command returns the number of records returned by a query.
DICTIONARY
SYSDATE
UNION
38. Explicit data type conversion is preferable to Oracle's...
Mathematical equations
SELECT DISTINCT menu FROM restaurant
Implicit conversion
Business problems
39. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
99.99
Combine
All caps
Optional
40. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
SELECT SYSDATE+1/96 - FROM dual
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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
ANSI
41. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Another null
ON
Same
Both MIN and MAX
42. Explain what is found in the All Objects report folder in SQL Developer
Details
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Script
CLOB
43. Which operator is most commonly used?
UNION
4
Nested
A correct statement
44. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
SELECT DISTINCT menu FROM restaurant
Semicolon or forward slash
The way NULL values are treated
Parent table
45. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
COMMIT
Inconsistencies
Logical unit of work
46. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Asterisk
F12
Mathematical equations
X
47. 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.
Structured Query Language
VALUES
KEEP INDEX
SYSDATE
48. The RTRIM function is useful for eliminating ________ in a string.
Extra spaces
Has not changed the name
UNION
Committed
49. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
Running a script file
Implicit conversion
Has not changed the name
50. You use the __________ keyword to change characteristics of a column.
Has not changed the name
MODIFY
ALL_OBJECTS
All