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. How many characters can you have using the VARCHAR data type?
Extra spaces
All caps
Running a script file
4000
2. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
UNION operator
Another null
GROUP BY
X
3. When is it not a good idea to use an index?
Implicit conversion
All caps
KEEP INDEX
When the table is small (unless your business rules require you too)
4. The query retrieves more than 5 to 15 percent of the rows
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.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
FALSE
Scalar
5. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
NATURAL JOIN
Any
DD-MON-YY
6. What is Oracle's most popular index storage structure?
@ or START
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
BETWEEN
B-Tree Index
7. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
GROUP BY
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
INTERSECT
8. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
DD-MON-YY
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
FALSE
9. Match each of the SQL commands on the left with a verb from the list.
Fractional seconds
TO_CHAR function
Export Data
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
10. Another name for a data dictionary view is __________________ or _________________.
NATURAL JOIN
Static or dynamic
Implicit conversion
Correlated
11. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
VALUES clause of an INSERT statement
Results
12:00:00 A.M
Parent table
12. Write the syntax to rename index just_two_more_weeks_i to finally_i
Run scripts
Three
DROP INDEX need_to_pass_i
RENAME just_two_more_weeks TO finally_i
13. You use the __________ keyword to change characteristics of a column.
MODIFY
B-Tree Index
Any
Actual column
14. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
Location of the file
Extra spaces
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
15. Write a statement for SQL*Plus that shows the dictionary.
User-defined reports
Default is 14; when you use the default - you repeat the heading every 14 rows.
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.
DESC dict;
16. The _____________ clause determines how rows are grouped.
Orphan
Export Data
GROUP BY
UNION
17. To equijoin a table with another table involves matching the...
Groups
Common column value
Equijoin and correlated subquery
RUN SCRIPT
18. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
ANY
Retrieve
Columns
19. _________________ relationships are always optional relationships.
Recursive
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
SUM
2000
20. What is the first column of a composite index called?
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
RIGHT LEFT JOIN
COMMIT
Leading-edge
21. The time zone displacement value indicates the time difference from _______.
IN ANY ALL SOME
Nested
All
UTC
22. It is considered good form to put all SQL commands in...
Extra spaces
Location of the file
All caps
Non-matching rows
23. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Non-matching rows
KEEP INDEX
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
F12
24. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
DICT_COLUMNS
Orphan
UNION
25. 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?
Run scripts
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
DICTIONARY
ON
26. The ALTER SESSION statement can change the session's...
Time zone
**** 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
Black
4000
27. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
VALUES clause of an INSERT statement
Columns
Precision
RUN SCRIPT
28. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
CLOB
User-defined reports
X
Structured Query Language
29. What is the main difference between the NOT EXISTS and the NOT IN operators?
Nested
The way NULL values are treated
SELECT SYSDATE+1/96 - FROM dual
USER_ - ALL_ - DBA_ - and V$
30. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Correlated
SELECT DISTINCT menu FROM restaurant
Inconsistencies
Rounded edges
31. The ROWID pseudocolumn is not an ________- but it acts like one.
Committed
Actual column
MODIFY
V$
32. PAGESIZE
ADD_MONTHS function
Month ddth - yyyy
FALSE
Default is 14; when you use the default - you repeat the heading every 14 rows.
33. Returns rows if the condition is true for all the values in the list
CLOB
X
COMMIT
All
34. The TRUNC function on a date without a format model truncates the timestamp to...
Time zone
INTERSECT
Any
12:00:00 A.M
35. What is the tab in SQL Developer where data dictionary view information can be found?
Details
RIGHT LEFT JOIN
Twice
Columns
36. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
VALUES clause of an INSERT statement
X
Three
Results
37. Checks whether any value in the list makes the condition true.
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.
2000
Semicolon or forward slash
Any
38. Which format mask displays December 31st - 1999?
Equijoin and correlated subquery
Extra spaces
UTC
Month ddth - yyyy
39. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Retrieve
Semicolon or forward slash
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Leading-edge
40. List 4 aggregate functions
2000
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Hide data
Command returns the number of records returned by a query.
41. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Another null
Default is 14; when you use the default - you repeat the heading every 14 rows.
Equijoin and correlated subquery
STORAGE
42. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
FALSE
COMMIT
Another null
BETWEEN
43. Checks whether any value in the list makes the condition true.
Non-matching rows
Any
Time zone
**** 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
44. __________________ inserts the current date and time.
SYSDATE
Common column value
ON
Non-matching rows
45. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Extra spaces
UTC
Rounded edges
MINUS
46. Explain what a static data dictionary view is and how it is used
Surrogate key
VALUES
Common column value
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.
47. LINESIZE
NATURAL JOIN
IN ANY ALL SOME
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
TO_CHAR function
48. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
V$
VALUES
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.
49. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Implicit conversion
Orphan
NATURAL JOIN
COMMIT
50. The RTRIM function is useful for eliminating ________ in a string.
Retrieve
Testing functions
Extra spaces
Implicit conversion