SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. FEEDBACK
Command returns the number of records returned by a query.
Correlated
12:00:00 A.M
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
2. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
FALSE
Static or dynamic
NATURAL JOIN
USER_ - ALL_ - DBA_ - and V$
3. It is considered good form to put all SQL commands in...
FALSE
All caps
Committed
Static or dynamic
4. List the reasons that a subquery could not be unnested.
X
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Results
Any
5. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Structured Query Language
Multiple rows
Scalar
Fractional seconds
6. NUMBER functions can be...
RIGHT LEFT JOIN
TO_CHAR function
Nested
KEEP INDEX
7. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
VALUES clause of an INSERT statement
Twice
RUN SCRIPT
DECODE
8. In SQL Developer field names and table names are shown in the color _______.
The way NULL values are treated
@ or START
Non-matching rows
Black
9. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
Equijoin and identical column names
RENAME just_two_more_weeks TO finally_i
RIGHT LEFT JOIN
10. 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.
Equijoin
Groups
BETWEEN
11. What do views do that makes them so useful for security?
Details
Running a script file
TO_CHAR function
Hide data
12. What is the maximum value for a column defined as NUMBER(4 -2)?
ANY
USER_ - ALL_ - DBA_ - and V$
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.
99.99
13. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
F12
When the table is small (unless your business rules require you too)
ANSI
14. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
4
FALSE
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
15. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Columns
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
Recursive
Hide data
16. The query retrieves more than 5 to 15 percent of the rows
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
UNION operator
The indexed column is part of an expression. In this case - consider creating a function-based index instead
COMMIT
17. List 6 Table-Related Menu Choices
IN ANY ALL SOME
DD-MON-YY
Equijoin and identical column names
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
18. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
GROUP BY
Fractional seconds
INTERSECT
19. How many characters can you have using the VARCHAR data type?
Data
4000
Export Data
Recursive
20. You can use the ________________ to subtract months from a given date.
SET clause of an UPDATE statement
UTC
Inconsistencies
ADD_MONTHS function
21. The DUAL table can be used for...
Testing functions
LIKE
ALL_OBJECTS
COMMIT
22. What is Oracle's most popular index storage structure?
Black
B-Tree Index
Parent table
Location of the file
23. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
Combine
X
STORAGE
24. To equijoin a table with another table involves matching the...
Location of the file
Multiple rows
Common column value
Run scripts
25. Explain how Substitution Variables are used when writing scripts.
CLOB
Export 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.
The way NULL values are treated
26. In a view you can give a column a different name than it has in the...
SYSDATE
Nested
Equijoin
Parent table
27. A transaction is a...
Logical unit of work
Multiple rows
ON
Twice
28. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Combine
Precision
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
29. Explain what a static data dictionary view is and how it is used
RENAME just_two_more_weeks TO finally_i
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.
Precision
KEEP INDEX
30. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
Another null
@ or START
Primary key/foreign key
31. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
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.
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.
32. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Columns
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Null
Static or dynamic
33. What is the main difference between the NOT EXISTS and the NOT IN operators?
2000
The way NULL values are treated
DROP INDEX need_to_pass_i
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
34. The __________ operator is inclusive of the two values specified.
All caps
Black
BETWEEN
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.
35. Another name for a data dictionary view is __________________ or _________________.
Any
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.
DD-MON-YY
Static or dynamic
36. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
ADD
B-Tree Index
Mathematical equations
FALSE
37. 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
STORAGE
4000
X
38. List the different types of data dictionary views.
User-defined reports
RENAME just_two_more_weeks TO finally_i
Crow's foot
USER_ - ALL_ - DBA_ - and V$
39. When is it not a good idea to use an index?
SELECT SYSDATE+1/96 - FROM dual
Time zone
BETWEEN
When the table is small (unless your business rules require you too)
40. What does SQL stand for?
2000
Structured Query Language
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.
DESC dict;
41. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
INNER JOIN
Structured Query Language
Same
RENAME just_two_more_weeks TO finally_i
42. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
TO_CHAR function
Black
ALL_OBJECTS
Another null
43. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
SET clause of an UPDATE statement
Surrogate
SELECT DISTINCT menu FROM restaurant
Script
44. PAGESIZE
SELECT DISTINCT menu FROM restaurant
Precision
Data
Default is 14; when you use the default - you repeat the heading every 14 rows.
45. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Recursive
When the table is small (unless your business rules require you too)
All
+
46. When you have issued a DELETE command - you can still ________ those rows and restore the information.
KEEP INDEX
SUM
Both MIN and MAX
Retrieve
47. 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
GROUP BY
F12
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
48. The same function can be used ______ in a SELECT statement.
Groups
Another null
RENAME just_two_more_weeks TO finally_i
Twice
49. When column names on the tables are different - you use the ______ condition.
ON
Semicolon or forward slash
Black
Logical unit of work
50. To restart a sequence at a lower number - you can drop and ________ the sequence.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Equijoin and identical column names
Re-create
Groups