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
Surrogate
Columns
Equijoin and identical column names
SET clause of an UPDATE statement
2. What does SQL stand for?
+
Structured Query Language
Multiple rows
COMMIT
3. The __________ operator is inclusive of the two values specified.
ANY
BETWEEN
ON
Implicit conversion
4. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Running a script file
Parent table
Equijoin
DESC dict;
5. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
Non-matching rows
Equijoin
ANSI
6. Dynamic views begin with a ___________.
Another null
V$
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
Has not changed the name
7. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
@ or START
USER_ - ALL_ - DBA_ - and V$
SELECT DISTINCT menu FROM restaurant
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
8. Write the syntax to rename index just_two_more_weeks_i to finally_i
4000
Leading-edge
SYSDATE
RENAME just_two_more_weeks TO finally_i
9. A join across three tables can be expressed with the ________ join syntax.
KEEP INDEX
ANSI
Hide data
FALSE
10. Checks whether any value in the list makes the condition true.
B-Tree Index
Re-create
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
Any
11. How many characters can be stored in the CHAR column/field?
Crow's foot
Location of the file
CLOB
2000
12. The time zone displacement value indicates the time difference from _______.
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
UTC
BETWEEN
4000
13. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Implicit conversion
B-Tree Index
Data
14. When is it not a good idea to use an index?
B-Tree Index
GROUP BY
When the table is small (unless your business rules require you too)
Correlated
15. __________________ inserts the current date and time.
Groups
SYSDATE
12:00:00 A.M
LIKE
16. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
ROLLBACK
Null
CLOB
17. Another name for a data dictionary view is __________________ or _________________.
All caps
ADD
Static or dynamic
Inconsistencies
18. Converting a text literal to DATE format requires the use of the...
INNER JOIN
Both MIN and MAX
TO_CHAR function
Fractional seconds
19. Which one of the following string functions tells you how many characters are in a string?
LENGTH
X
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
99.99
20. List the reasons that a subquery could not be unnested.
Details
Structured Query Language
X
DD-MON-YY
21. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
A correct statement
IN ANY ALL SOME
Running a script file
Groups
22. Subqueries can return...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Scalar
B-Tree Index
Multiple rows
23. The ____________ command makes changes permanent.
When the table is small (unless your business rules require you too)
ADD_MONTHS function
COMMIT
SELECT DISTINCT menu FROM restaurant
24. Joins involving multiple columns must always follow the ____________ relationship path.
VALUES clause of an INSERT statement
User-defined reports
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Primary key/foreign key
25. The ______ operator compares a list of values for equivalency
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.
RENAME just_two_more_weeks TO finally_i
Null
ANY
26. What is the main difference between the NOT EXISTS and the NOT IN operators?
BETWEEN
Both MIN and MAX
The way NULL values are treated
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.
27. Write a statement for SQL*Plus that shows the dictionary.
A correct statement
UNION
DESC dict;
Time zone
28. The _______ operator determines common rows.
Self-joins
UNION operator
INTERSECT
SYSDATE
29. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Committed
Correlated
Command returns the number of records returned by a query.
Implicit conversion
30. 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.
B-Tree Index
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
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.
31. Oracle uses the outer join operator to indicate that nulls are shown for...
Leading-edge
When the table is small (unless your business rules require you too)
Non-matching rows
Self-joins
32. SQL*Plus is used more than SQL Developer when you need to...
+
Run scripts
Re-create
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.
33. You use the _________ keyword to add columns or constraints to a table.
ADD
VALUES clause of an INSERT statement
4
Twice
34. 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.
Correlated
FALSE
IN ANY ALL SOME
All
35. _________________ relationships are always optional relationships.
STORAGE
Recursive
ROLLBACK
Any
36. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
Orphan
The way NULL values are treated
INNER JOIN
37. You use the __________ keyword to change characteristics of a column.
MODIFY
X
Script
DROP INDEX need_to_pass_i
38. List the different types of data dictionary views.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
USER_ - ALL_ - DBA_ - and V$
X
39. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
DICT_COLUMNS
RUN SCRIPT
X
40. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Export Data
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
DICT_COLUMNS
Hide data
41. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
@ or START
TO_CHAR function
Black
42. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Testing functions
VALUES clause of an INSERT statement
Asterisk
Leading-edge
43. The same function can be used ______ in a SELECT statement.
Twice
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Semicolon or forward slash
DECODE
44. Explain how Substitution Variables are used when writing scripts.
Black
Any
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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.
45. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
RENAME just_two_more_weeks TO finally_i
TO_CHAR function
Non-matching rows
46. Explain in detail the impact of INDEXES and how they are used by Oracle.
12:00:00 A.M
Semicolon or forward slash
The way NULL values are treated
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
47. Explicit data type conversion is preferable to Oracle's...
STORAGE
RENAME just_two_more_weeks TO finally_i
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
Implicit conversion
48. The _______ function adds values together for a group of rows.
FALSE
DICT_COLUMNS
X
SUM
49. How many characters can you have using the VARCHAR data type?
4000
Extra spaces
GROUP BY
Command returns the number of records returned by a query.
50. The ___________ operator tests whether a matching row cannot be found.
Scalar
X
12:00:00 A.M
Extra spaces