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. Explain how the SPOOL command is used and what program it can be used in.
4
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
Implicit conversion
Logical unit of work
2. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Rounded edges
BETWEEN
CLOB
Static or dynamic
3. Queries that are found in parentheses are done first - just as in the order of operations when doing...
All
VALUES
Mathematical equations
Correlated
4. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Non-matching rows
999999.9999
KEEP INDEX
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.
5. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.
X
Mathematical equations
Has not changed the name
GROUP BY
6. Joins involving multiple columns must always follow the ____________ relationship path.
Structured Query Language
SELECT DISTINCT menu FROM restaurant
+
Primary key/foreign key
7. To join four tables - you must have at least _____ join conditions.
RUN SCRIPT
@ or START
Testing functions
Three
8. Explain what is found in the All Objects report folder in SQL Developer
X
Common column value
Combine
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
9. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
Testing functions
@ or START
Asterisk
10. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
4
Running a script file
Retrieve
11. The COUNT function uses the __________ wildcard.
RIGHT LEFT JOIN
Asterisk
Combine
Committed
12. NUMBER functions can be...
Nested
Multiple rows
Logical unit of work
Precision
13. The COUNT function is useful for determining whether a table has...
Re-create
NATURAL JOIN
Data
Default is 14; when you use the default - you repeat the heading every 14 rows.
14. 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
15. 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
Surrogate
Retrieve
Actual column
16. Which one of the following string functions tells you how many characters are in a string?
Re-create
LENGTH
All caps
Details
17. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
LENGTH
Actual column
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
18. The _______ function adds values together for a group of rows.
Both MIN and MAX
DD-MON-YY
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
SUM
19. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Non-matching rows
X
SELECT DISTINCT menu FROM restaurant
Any
20. The time zone displacement value indicates the time difference from _______.
UTC
MINUS
All caps
Details
21. What do views do that makes them so useful for security?
FALSE
ADD_MONTHS function
All
Hide data
22. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
Combine
ADD_MONTHS function
Testing functions
23. Checks whether any value in the list makes the condition true.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Any
X
User-defined reports
24. The ROWID pseudocolumn is not an ________- but it acts like one.
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.
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
Actual column
Parent table
25. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
B-Tree Index
SET clause of an UPDATE statement
Common column value
26. Explain the steps needed to run a script in SQL Developer
2000
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.
Hide data
DICTIONARY
27. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Non-matching rows
The way NULL values are treated
@ or START
+
28. List the reasons that a subquery could not be unnested.
Groups
INNER JOIN
Mathematical equations
X
29. UNION ALL does not sort - therefore it is less time consuming to use than the...
All caps
Parent table
UNION operator
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.
30. A _________ subquery returns a single column with a single row
Re-create
COMMIT
KEEP INDEX
Scalar
31. The _______ operator determines common rows.
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
INTERSECT
RENAME just_two_more_weeks TO finally_i
SELECT DISTINCT menu FROM restaurant
32. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
Extra spaces
Hide data
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
33. Another name for a data dictionary view is __________________ or _________________.
Run scripts
Orphan
Nested
Static or dynamic
34. Write the syntax to rename index just_two_more_weeks_i to finally_i
LENGTH
RENAME just_two_more_weeks TO finally_i
Semicolon or forward slash
RUN SCRIPT
35. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Static or dynamic
4
X
Semicolon or forward slash
36. Returns rows if the condition is true for all the values in the list
DICT_COLUMNS
VALUES clause of an INSERT statement
F12
All
37. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Semicolon or forward slash
Same
Static or dynamic
Month ddth - yyyy
38. A calculation with a null always yields...
SYSDATE
2000
Another null
SUM
39. The using clause of the ANSI join syntax always assumes an...
Equijoin
Equijoin and identical column names
Crow's foot
999999.9999
40. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
Has not changed the name
Re-create
VALUES clause of an INSERT statement
41. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
Black
B-Tree Index
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.
42. What is the first column of a composite index called?
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Leading-edge
Same
VALUES
43. You use the __________ keyword to change characteristics of a column.
MODIFY
Running a script file
Run scripts
SET clause of an UPDATE statement
44. The ____________ command makes changes permanent.
ANY
COMMIT
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
@ or START
45. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
4
999999.9999
Three
46. When you run a script in SQL*Plus you must give the...
Business problems
Location of the file
Black
INNER JOIN
47. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Static or dynamic
Nested
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
Running a script file
48. 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.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Groups
RIGHT LEFT JOIN
ANSI
49. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
50. What is the tab in SQL Developer where data dictionary view information can be found?
Script
LIKE
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Details