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. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
99.99
Export Data
BETWEEN
DD-MON-YY
2. The ______ depicts the M of a 1:M relationship.
3. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Structured Query Language
IN ANY ALL SOME
DESC dict;
4. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Black
TO_CHAR function
Extra spaces
5. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
SUM
Null
Command returns the number of records returned by a query.
6. 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
Optional
MINUS
Has not changed the name
7. Write the syntax to rename index just_two_more_weeks_i to finally_i
X
RENAME just_two_more_weeks TO finally_i
IN ANY ALL SOME
SELECT DISTINCT menu FROM restaurant
8. Explain how Substitution Variables are used when writing scripts.
RIGHT LEFT JOIN
Common column value
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.
TO_CHAR function
9. You use the __________ keyword to change characteristics of a column.
GROUP BY
BETWEEN
Nested
MODIFY
10. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
INNER JOIN
FALSE
4000
Both MIN and MAX
11. Explain in detail the impact of INDEXES and how they are used by Oracle.
When the table is small (unless your business rules require you too)
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
+
MODIFY
12. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
All caps
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 way NULL values are treated
13. 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?
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
DICTIONARY
4000
Scale
14. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
DD-MON-YY
Multiple rows
Combine
V$
15. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
DD-MON-YY
Equijoin and correlated subquery
Static or dynamic
MINUS
16. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
BETWEEN
Three
A correct statement
17. To equijoin a table with another table involves matching the...
Scalar
DROP INDEX need_to_pass_i
Common column value
SELECT SYSDATE+1/96 - FROM dual
18. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
VALUES
SYSDATE
Both MIN and MAX
19. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Static or dynamic
DESC dict;
Implicit conversion
20. Explain how the SPOOL command is used and what program it can be used in.
Has not changed the name
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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
ANY
21. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
VALUES clause of an INSERT statement
RIGHT LEFT JOIN
SELECT DISTINCT menu FROM restaurant
22. Which one of the following string functions tells you how many characters are in a string?
Actual column
LENGTH
TO_CHAR function
Command returns the number of records returned by a query.
23. _________________ relationships are always optional relationships.
Implicit conversion
Recursive
Data
SELECT DISTINCT menu FROM restaurant
24. Write a statement for SQL*Plus that shows the dictionary.
Multiple rows
Retrieve
DESC dict;
The way NULL values are treated
25. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Implicit conversion
Parent table
26. Explain what is found in the All Objects report folder in SQL Developer
Any
BETWEEN
Extra spaces
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
27. What is the keyboard shortcut for the ROLLBACK command?
CLOB
Actual column
F12
Extra spaces
28. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Nested
Committed
Mathematical equations
BETWEEN
29. ____________ are useful for analyzing and exploring the relationships within your data
Has not changed the name
INNER JOIN
Self-joins
Rounded edges
30. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
KEEP INDEX
Non-matching rows
VALUES clause of an INSERT statement
A correct statement
31. Explicit data type conversion is preferable to Oracle's...
Location of the file
Non-matching rows
Implicit conversion
DESC dict;
32. What does SQL stand for?
KEEP INDEX
SYSDATE
Structured Query Language
ADD_MONTHS function
33. The _______ function adds values together for a group of rows.
NATURAL JOIN
Committed
ALL_OBJECTS
SUM
34. __________________ inserts the current date and time.
Groups
LENGTH
SYSDATE
Multiple rows
35. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
Equijoin and identical column names
UTC
Data
36. What are the main components of a ROWID?
Time zone
Hide data
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.
Scale
37. Dynamic views begin with a ___________.
V$
Mathematical equations
Recursive
SET clause of an UPDATE statement
38. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
F12
Correlated
Committed
INTERSECT
39. What is the first column of a composite index called?
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
UTC
The way NULL values are treated
Leading-edge
40. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Same
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
Both MIN and MAX
Fractional seconds
41. Joins involving multiple columns must always follow the ____________ relationship path.
Default is 14; when you use the default - you repeat the heading every 14 rows.
999999.9999
Recursive
Primary key/foreign key
42. To restart a sequence at a lower number - you can drop and ________ the sequence.
Any
Primary key/foreign key
IN ANY ALL SOME
Re-create
43. What is the maximum value for a column defined as NUMBER(4 -2)?
Testing functions
99.99
RUN SCRIPT
Asterisk
44. The _______ operator determines common rows.
Data
2000
INTERSECT
Has not changed the name
45. The query retrieves more than 5 to 15 percent of the rows
ROLLBACK
FALSE
Re-create
The indexed column is part of an expression. In this case - consider creating a function-based index instead
46. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Null
Scale
B-Tree Index
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
47. You can pass parameters from the operating system when ___________ in SQl*Plus
Retrieve
Running a script file
SELECT DISTINCT menu FROM restaurant
The indexed column is part of an expression. In this case - consider creating a function-based index instead
48. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Combine
Business problems
Surrogate
999999.9999
49. The _____________ clause determines how rows are grouped.
Non-matching rows
Actual column
Another null
GROUP BY
50. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.