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. List the reasons that a subquery could not be unnested.
DECODE
All
X
Month ddth - yyyy
2. LINESIZE
INNER JOIN
STORAGE
Scalar
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
3. What is the name of the key automatically generated from a sequence?
Groups
Leading-edge
SET clause of an UPDATE statement
Surrogate key
4. Which one of the following string functions tells you how many characters are in a string?
Precision
LENGTH
Details
UNION operator
5. When is it not a good idea to use an index?
SUM
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
When the table is small (unless your business rules require you too)
Orphan
6. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
Actual column
Equijoin and identical column names
Structured Query Language
7. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
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.
@ or START
Data
8. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
CLOB
NATURAL JOIN
Precision
4000
9. Returns rows if the condition is true for all the values in the list
X
Business problems
All
ROLLBACK
10. To join four tables - you must have at least _____ join conditions.
Correlated
Run scripts
Three
99.99
11. 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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
ADD_MONTHS function
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
12. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Common column value
ON
ROLLBACK
13. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
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.
COMMIT
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
ALL_OBJECTS
14. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
@ or START
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Results
STORAGE
15. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Details
Logical unit of work
Run scripts
X
16. What is the first column of a composite index called?
Correlated
Leading-edge
BETWEEN
Nested
17. __________________ inserts the current date and time.
A correct statement
999999.9999
SYSDATE
Crow's foot
18. Subqueries can return...
B-Tree Index
Multiple rows
ADD
IN ANY ALL SOME
19. What is the keyboard shortcut for the ROLLBACK command?
Rounded edges
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
F12
X
20. The term ____________ ___________ is used to express a join that satisfies the join condition.
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.
Fractional seconds
Implicit conversion
INNER JOIN
21. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
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 indexed column is part of an expression. In this case - consider creating a function-based index instead
ROLLBACK
STORAGE
22. The _______ function lets you perform if-then-else functionality with the SQL language.
Committed
DECODE
ANSI
Implicit conversion
23. 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
24. 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
V$
UNION operator
Logical unit of work
25. The __________ operator is inclusive of the two values specified.
BETWEEN
2000
Command returns the number of records returned by a query.
99.99
26. 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
Leading-edge
RIGHT LEFT JOIN
Scalar
27. _________________ relationships are always optional relationships.
CLOB
V$
Recursive
Precision
28. Dynamic views begin with a ___________.
DESC dict;
V$
Semicolon or forward slash
4
29. SQL*Plus is used more than SQL Developer when you need to...
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
COMMIT
BETWEEN
Run scripts
30. FEEDBACK
Fractional seconds
CLOB
Equijoin and identical column names
Command returns the number of records returned by a query.
31. The key that most database designers prefer and is chosen by the system is the _____________ key.
TO_CHAR function
Hide data
DESC dict;
Surrogate
32. Explain what is found in the All Objects report folder in SQL Developer
ADD
User-defined reports
Time zone
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
33. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Scale
4000
X
34. Explain what a static data dictionary view is and how it is used
X
SET clause of an UPDATE statement
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.
Non-matching rows
35. In a view you can give a column a different name than it has in the...
ANY
X
Parent table
Recursive
36. The DUAL table can be used for...
Primary key/foreign key
Testing functions
VALUES
Script
37. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
DESC dict;
Extra spaces
RUN SCRIPT
38. The ____________ command makes changes permanent.
Running a script file
Leading-edge
COMMIT
Scale
39. The _______ operator determines common rows.
12:00:00 A.M
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Export Data
INTERSECT
40. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Run scripts
Inconsistencies
V$
Null
41. You use the __________ keyword to change characteristics of a column.
Details
Both MIN and MAX
MODIFY
**** 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
42. The RTRIM function is useful for eliminating ________ in a string.
Results
Actual column
ON
Extra spaces
43. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Primary key/foreign key
All
Both MIN and MAX
Static or dynamic
44. The purpose of the HAVING clause is to eliminate___________.
Multiple rows
Groups
999999.9999
SUM
45. NUMBER functions can be...
Nested
@ or START
Run scripts
Data
46. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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
Scale
UTC
47. When column names on the tables are different - you use the ______ condition.
DROP INDEX need_to_pass_i
User-defined reports
ON
Recursive
48. 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
49. In SQL Developer field names and table names are shown in the color _______.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
LIKE
TO_CHAR function
Black
50. Write a statement for SQL*Plus that shows the dictionary.
RENAME just_two_more_weeks TO finally_i
SELECT SYSDATE+1/96 - FROM dual
DESC dict;
IN ANY ALL SOME