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. You use the _________ keyword to add columns or constraints to a table.
X
Non-matching rows
Crow's foot
ADD
2. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
Optional
Correlated
Asterisk
3. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
DICTIONARY
RENAME just_two_more_weeks TO finally_i
MINUS
ALL_OBJECTS
4. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Export Data
VALUES clause of an INSERT statement
F12
5. A _________ subquery returns a single column with a single row
CLOB
Scalar
Recursive
Any
6. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
INTERSECT
@ or START
User-defined reports
7. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
All caps
A correct statement
FALSE
8. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
The indexed column is part of an expression. In this case - consider creating a function-based index instead
+
Equijoin and correlated subquery
9. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Data
X
User-defined reports
Export Data
10. What is Oracle's most popular index storage structure?
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
B-Tree Index
Twice
Orphan
11. The _____________ clause determines how rows are grouped.
Multiple rows
Details
GROUP BY
Equijoin and correlated subquery
12. 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
F12
12:00:00 A.M
SELECT SYSDATE+1/96 - FROM dual
13. When is it not a good idea to use an index?
Re-create
RIGHT LEFT JOIN
When the table is small (unless your business rules require you too)
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
14. 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
SELECT SYSDATE+1/96 - FROM dual
X
Run scripts
15. _________________ relationships are always optional relationships.
INNER JOIN
The way NULL values are treated
DROP INDEX need_to_pass_i
Recursive
16. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
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.
CLOB
Multiple rows
Fractional seconds
17. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
Combine
Surrogate key
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.
18. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Structured Query Language
Semicolon or forward slash
19. You can pass parameters from the operating system when ___________ in SQl*Plus
INNER JOIN
USER_ - ALL_ - DBA_ - and V$
Running a script file
Month ddth - yyyy
20. You use the __________ keyword to change characteristics of a column.
MODIFY
BETWEEN
Equijoin
Testing functions
21. What is the name of the key automatically generated from a sequence?
RIGHT LEFT JOIN
DD-MON-YY
Surrogate key
**** 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
22. What is the most common DATE format found in SQL?
DD-MON-YY
ANY
Any
The way NULL values are treated
23. The ___________ operator tests whether a matching row cannot be found.
Black
X
4000
Equijoin and correlated subquery
24. Which format mask displays December 31st - 1999?
ROLLBACK
Export Data
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Month ddth - yyyy
25. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Export Data
STORAGE
Running a script file
@ or START
26. SELECT LIST of a subquery in an INSERT statement
IN ANY ALL SOME
SET clause of an UPDATE statement
F12
Any
27. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Command returns the number of records returned by a query.
IN ANY ALL SOME
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 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.
28. The COUNT function uses the __________ wildcard.
Asterisk
Groups
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.
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. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
IN ANY ALL SOME
Correlated
LIKE
Month ddth - yyyy
30. List the steps performed by a correlated subquery.
Another null
TO_CHAR function
**** 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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
31. What does SQL stand for?
Details
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
4
Structured Query Language
32. Which one of the following string functions tells you how many characters are in a string?
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Groups
LENGTH
CLOB
33. Explain why constraints are used when building tables.
34. To join four tables - you must have at least _____ join conditions.
Location of the file
Both MIN and MAX
MINUS
Three
35. Match each of the SQL commands on the left with a verb from the list.
4
+
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Default is 14; when you use the default - you repeat the heading every 14 rows.
36. 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
When the table is small (unless your business rules require you too)
Running a script file
STORAGE
37. Checks whether any value in the list makes the condition true.
12:00:00 A.M
Orphan
Any
Location of the file
38. List the reasons that a subquery could not be unnested.
Parent table
999999.9999
Both MIN and MAX
X
39. The purpose of the HAVING clause is to eliminate___________.
12:00:00 A.M
Leading-edge
MODIFY
Groups
40. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Re-create
Logical unit of work
+
Script
41. A join across three tables can be expressed with the ________ join syntax.
Both MIN and MAX
ANSI
UTC
ANY
42. The key that most database designers prefer and is chosen by the system is the _____________ key.
Columns
Surrogate
Time zone
X
43. The _______ function adds values together for a group of rows.
SELECT DISTINCT menu FROM restaurant
Location of the file
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.
SUM
44. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Black
Correlated
Results
Export Data
45. To equijoin a table with another table involves matching the...
Structured Query Language
Common column value
V$
Black
46. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Static or dynamic
X
NATURAL JOIN
Command returns the number of records returned by a query.
47. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Equijoin and identical column names
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.
Run scripts
48. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
IN ANY ALL SOME
V$
VALUES clause of an INSERT statement
49. ____________ are useful for analyzing and exploring the relationships within your data
ALL_OBJECTS
Data
Self-joins
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.
50. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Nested
Mathematical equations
Script
B-Tree Index