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. What is the keyboard shortcut for the ROLLBACK command?
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Extra spaces
X
F12
2. 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?
Groups
Inconsistencies
DICTIONARY
Location of the file
3. You use the _________ keyword to add columns or constraints to a table.
FALSE
SELECT DISTINCT menu FROM restaurant
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ADD
4. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
DICT_COLUMNS
Fractional seconds
Primary key/foreign key
5. A _________ subquery returns a single column with a single row
Equijoin
Equijoin and identical column names
SET clause of an UPDATE statement
Scalar
6. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
GROUP BY
Script
Self-joins
7. Returns rows if the condition is true for all the values in the list
Three
4000
SELECT SYSDATE+1/96 - FROM dual
All
8. Checks whether any value in the list makes the condition true.
UNION
Common column value
Any
Testing functions
9. The DUAL table can be used for...
Testing functions
The way NULL values are treated
SET clause of an UPDATE statement
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
10. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
**** 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
Self-joins
ALL_OBJECTS
11. Self-joins are useful for performing comparisons and checking for ___________ in data.
Scalar
Optional
Orphan
Inconsistencies
12. List the steps performed by a correlated subquery.
**** 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
Command returns the number of records returned by a query.
FALSE
VALUES clause of an INSERT statement
13. What is Oracle's most popular index storage structure?
Surrogate key
VALUES
B-Tree Index
2000
14. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
@ or START
Multiple rows
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.
Precision
15. Which operator is most commonly used?
COMMIT
+
UNION
Primary key/foreign key
16. To join four tables - you must have at least _____ join conditions.
Three
Semicolon or forward slash
SET clause of an UPDATE statement
Script
17. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
All caps
B-Tree Index
The way NULL values are treated
Fractional seconds
18. FEEDBACK
Surrogate
Fractional seconds
Command returns the number of records returned by a query.
@ or START
19. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
ADD
Business problems
ANY
20. Checks whether any value in the list makes the condition true.
Multiple rows
INTERSECT
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
Any
21. When you have issued a DELETE command - you can still ________ those rows and restore the information.
INTERSECT
Running a script file
Retrieve
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.
22. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
Combine
DESC dict;
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.
23. Subqueries can return...
Surrogate key
Testing functions
Inconsistencies
Multiple rows
24. The term ____________ ___________ is used to express a join that satisfies the join condition.
Asterisk
Precision
B-Tree Index
INNER JOIN
25. Users can only see changes made to a database once they have been...
X
Committed
INTERSECT
Columns
26. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
SYSDATE
Combine
Asterisk
USER_ - ALL_ - DBA_ - and V$
27. 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.
Asterisk
DICT_COLUMNS
Re-create
RIGHT LEFT JOIN
28. Which one of the following string functions tells you how many characters are in a string?
VALUES
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
LENGTH
Any
29. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Parent table
Columns
Hide data
ALL_OBJECTS
30. The focus of the logical data model is _____________
Business problems
Surrogate key
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Precision
31. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
BETWEEN
Optional
RUN SCRIPT
32. Explain how the SPOOL command is used and what program it can be used in.
Implicit conversion
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$
BETWEEN
33. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
X
Equijoin and correlated subquery
RUN SCRIPT
NATURAL JOIN
34. The using clause of the ANSI join syntax always assumes an...
F12
DROP INDEX need_to_pass_i
MODIFY
Equijoin and identical column names
35. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Running a script file
BETWEEN
RUN SCRIPT
Asterisk
36. What is the most common DATE format found in SQL?
ADD_MONTHS function
DD-MON-YY
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
ROLLBACK
37. The ALTER SESSION statement can change the session's...
Script
USER_ - ALL_ - DBA_ - and V$
Time zone
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
38. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
Nested
Running a script file
Rounded edges
39. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
Script
VALUES clause of an INSERT statement
DECODE
40. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Implicit conversion
Three
41. The ________ operator cannot compare against a list of values.
GROUP BY
LIKE
Asterisk
Scale
42. What is the data type you can use if you need an unlimited number of textual characters?
BETWEEN
When the table is small (unless your business rules require you too)
CLOB
Any
43. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
Equijoin and identical column names
The indexed column is part of an expression. In this case - consider creating a function-based index instead
X
44. It is considered good form to put all SQL commands in...
All caps
BETWEEN
All
BETWEEN
45. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
User-defined reports
4000
STORAGE
Both MIN and MAX
46. The _______ function lets you perform if-then-else functionality with the SQL language.
DICTIONARY
DECODE
DESC dict;
Null
47. The COUNT function is useful for determining whether a table has...
Hide data
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.
Data
LENGTH
48. What does SQL stand for?
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
Run scripts
Groups
Structured Query Language
49. List 6 Table-Related Menu Choices
IN ANY ALL SOME
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
RENAME just_two_more_weeks TO finally_i
Any
50. To equijoin a table with another table involves matching the...
Common column value
All caps
LENGTH
SELECT DISTINCT menu FROM restaurant