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. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
NATURAL JOIN
Null
X
2. What is the name of the key automatically generated from a sequence?
Surrogate key
Results
Details
All
3. The _______ function lets you perform if-then-else functionality with the SQL language.
4
Correlated
DECODE
X
4. 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.
SYSDATE
FALSE
Semicolon or forward slash
DD-MON-YY
5. NUMBER functions can be...
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
Nested
Any
Scalar
6. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Business problems
LIKE
KEEP INDEX
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
7. The ______ operator compares a list of values for equivalency
Groups
Business problems
ANY
ROLLBACK
8. Checks whether any value in the list makes the condition true.
FALSE
X
ADD
Any
9. List the different types of data dictionary views.
DICT_COLUMNS
ADD
Scalar
USER_ - ALL_ - DBA_ - and V$
10. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
When the table is small (unless your business rules require you too)
Self-joins
A correct statement
Equijoin
11. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Results
Retrieve
NATURAL JOIN
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
12. Write a statement that drops the index need_to_pass_i
SUM
DROP INDEX need_to_pass_i
User-defined reports
Re-create
13. 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
14. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
CLOB
RUN SCRIPT
Three
15. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
X
Semicolon or forward slash
UTC
16. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Asterisk
X
17. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Nested
Both MIN and MAX
V$
999999.9999
18. The time zone displacement value indicates the time difference from _______.
Twice
Retrieve
MINUS
UTC
19. Which operator is most commonly used?
UNION
Extra spaces
Leading-edge
Scalar
20. Explain in detail the impact of INDEXES and how they are used by Oracle.
Structured Query Language
Orphan
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
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
21. The _____________ clause determines how rows are grouped.
Recursive
X
SUM
GROUP BY
22. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
ANY
DECODE
Export Data
23. List 4 aggregate functions
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
SYSDATE
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
The indexed column is part of an expression. In this case - consider creating a function-based index instead
24. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
ROLLBACK
Primary key/foreign key
Three
25. What is the keyboard shortcut for the ROLLBACK command?
User-defined reports
Twice
F12
IN ANY ALL SOME
26. To join four tables - you must have at least _____ join conditions.
Equijoin
RIGHT LEFT JOIN
Three
Rounded edges
27. The COUNT function is useful for determining whether a table has...
DICTIONARY
Data
Scalar
**** 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
28. __________________ inserts the current date and time.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Actual column
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.
29. What is Oracle's most popular index storage structure?
Groups
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
B-Tree Index
ANSI
30. List the steps performed by a correlated subquery.
ANY
**** 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
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
SET clause of an UPDATE statement
31. You use the __________ keyword to change characteristics of a column.
DD-MON-YY
VALUES
UNION
MODIFY
32. Write a statement for SQL*Plus that shows the dictionary.
@ or START
SYSDATE
DESC dict;
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
33. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
UNION operator
When the table is small (unless your business rules require you too)
MINUS
Scale
34. What is the tab in SQL Developer where data dictionary view information can be found?
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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.
Details
UTC
35. The TRUNC function on a date without a format model truncates the timestamp to...
SYSDATE
4
Command returns the number of records returned by a query.
12:00:00 A.M
36. 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.
Has not changed the name
X
Groups
Nested
37. Explain what a static data dictionary view is and how it is used
DESC dict;
ANSI
Script
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.
38. The same function can be used ______ in a SELECT statement.
Twice
The way NULL values are treated
Actual column
Three
39. 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
Columns
Another null
LIKE
40. Which format mask displays December 31st - 1999?
DICT_COLUMNS
UNION
Month ddth - yyyy
+
41. When you run a script in SQL*Plus you must give the...
Retrieve
Location of the file
Extra spaces
DICT_COLUMNS
42. 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?
DICTIONARY
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
RUN SCRIPT
4
43. SELECT * FROM instructor ORDER BY phone
Structured Query Language
A correct statement
BETWEEN
Any
44. Dynamic views begin with a ___________.
X
Non-matching rows
VALUES
V$
45. The using clause of the ANSI join syntax always assumes an...
Equijoin and identical column names
Re-create
LIKE
TO_CHAR function
46. Explain the steps needed to run a script in SQL Developer
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
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.
ON
47. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
DROP INDEX need_to_pass_i
F12
Fractional seconds
@ or START
48. When is it not a good idea to use an index?
Optional
SET clause of an UPDATE statement
All caps
When the table is small (unless your business rules require you too)
49. Explain what is found in the All Objects report folder in SQL Developer
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Equijoin and correlated subquery
Month ddth - yyyy
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
50. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
VALUES clause of an INSERT statement
Multiple rows
User-defined reports
**** 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