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. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
SET clause of an UPDATE statement
+
Another null
2. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Retrieve
X
SET clause of an UPDATE statement
Rounded edges
3. The ________ operator cannot compare against a list of values.
UNION
LIKE
Time zone
Testing functions
4. ____________ are useful for analyzing and exploring the relationships within your data
Data
DROP INDEX need_to_pass_i
STORAGE
Self-joins
5. Another name for a data dictionary view is __________________ or _________________.
Actual column
Black
Static or dynamic
SET clause of an UPDATE statement
6. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
ALL_OBJECTS
Multiple rows
VALUES
RUN SCRIPT
7. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
RENAME just_two_more_weeks TO finally_i
COMMIT
VALUES clause of an INSERT statement
8. 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?
DICTIONARY
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Fractional seconds
DD-MON-YY
9. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Primary key/foreign key
SELECT SYSDATE+1/96 - FROM dual
Correlated
Columns
10. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
Equijoin and identical column names
2000
999999.9999
11. In a view you can give a column a different name than it has in the...
The way NULL values are treated
Parent table
Scalar
When the table is small (unless your business rules require you too)
12. Checks whether any value in the list makes the condition true.
Any
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
User-defined reports
Both MIN and MAX
13. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
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.
Extra spaces
INTERSECT
14. The COUNT function uses the __________ wildcard.
ROLLBACK
Asterisk
UNION operator
STORAGE
15. What do views do that makes them so useful for security?
Time zone
LENGTH
Hide data
Both MIN and MAX
16. _________ rows are not allowed in the relational model.
TO_CHAR function
Orphan
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Details
17. NUMBER functions can be...
Same
Nested
Results
Script
18. The __________ operator is inclusive of the two values specified.
Logical unit of work
The way NULL values are treated
Script
BETWEEN
19. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Surrogate key
All
Null
DICT_COLUMNS
20. The time zone displacement value indicates the time difference from _______.
Common column value
Recursive
SYSDATE
UTC
21. Users can only see changes made to a database once they have been...
@ or START
NATURAL JOIN
ADD
Committed
22. The term ____________ ___________ is used to express a join that satisfies the join condition.
Equijoin
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.
B-Tree Index
INNER JOIN
23. A join across three tables can be expressed with the ________ join syntax.
ANSI
X
TO_CHAR function
A correct statement
24. A transaction is a...
@ or START
Logical unit of work
MODIFY
Rounded edges
25. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
Default is 14; when you use the default - you repeat the heading every 14 rows.
KEEP INDEX
Mathematical equations
26. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
999999.9999
@ or START
2000
Location of the file
27. Self-joins are useful for performing comparisons and checking for ___________ in data.
Combine
DICTIONARY
ROLLBACK
Inconsistencies
28. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Run scripts
Precision
Mathematical equations
Any
29. What does SQL stand for?
Structured Query Language
Has not changed the name
2000
Command returns the number of records returned by a query.
30. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
GROUP BY
Export Data
Run scripts
31. The TRUNC function on a date without a format model truncates the timestamp to...
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
12:00:00 A.M
Asterisk
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.
32. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
DICTIONARY
Common column value
MINUS
STORAGE
33. How many characters can you have using the VARCHAR data type?
Same
Scalar
Scale
4000
34. What does the following function return? SELECT LENGTH(NULL) - FROM dual
**** 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$
IN ANY ALL SOME
Null
35. SELECT * FROM instructor ORDER BY phone
Results
Combine
Twice
A correct statement
36. The same function can be used ______ in a SELECT statement.
SELECT SYSDATE+1/96 - FROM dual
Equijoin
Twice
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.
37. Explain the steps needed to run a script in SQL Developer
SET clause of an UPDATE statement
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.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
RIGHT LEFT JOIN
38. The ______ operator compares a list of values for equivalency
NATURAL JOIN
ANY
DICTIONARY
A correct statement
39. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4000
RENAME just_two_more_weeks TO finally_i
All
4
40. The using clause of the ANSI join syntax always assumes an...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
STORAGE
+
Equijoin and identical column names
41. Subqueries can return...
Actual column
Equijoin
Multiple rows
4
42. Explain what a static data dictionary view is and how it is used
UNION
+
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.
Results
43. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
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.
USER_ - ALL_ - DBA_ - and V$
Fractional seconds
A correct statement
44. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Logical unit of work
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
BETWEEN
ADD
45. When column names on the tables are different - you use the ______ condition.
ON
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
RENAME just_two_more_weeks TO finally_i
V$
46. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
@ or START
ADD_MONTHS function
SELECT SYSDATE+1/96 - FROM dual
47. 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
48. The _____________ clause determines how rows are grouped.
999999.9999
GROUP BY
MODIFY
Retrieve
49. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
SELECT DISTINCT menu FROM restaurant
TO_CHAR function
Any
50. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Month ddth - yyyy
V$
UNION operator