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. It is considered good form to put all SQL commands in...
Black
UNION operator
Both MIN and MAX
All caps
2. Which format mask displays December 31st - 1999?
Common column value
Month ddth - yyyy
Orphan
INTERSECT
3. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
**** 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
RENAME just_two_more_weeks TO finally_i
Combine
4. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
X
Extra spaces
KEEP INDEX
Hide data
5. The same function can be used ______ in a SELECT statement.
A correct statement
Twice
DD-MON-YY
SELECT SYSDATE+1/96 - FROM dual
6. To restart a sequence at a lower number - you can drop and ________ the sequence.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Common column value
Re-create
Structured Query Language
7. The purpose of the HAVING clause is to eliminate___________.
DICTIONARY
INTERSECT
Twice
Groups
8. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
@ or START
12:00:00 A.M
A correct statement
9. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.
Data
Script
Common column value
VALUES
10. List the steps performed by a correlated subquery.
Any
SYSDATE
**** 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
GROUP BY
11. A calculation with a null always yields...
Common column value
Another null
Command returns the number of records returned by a query.
Implicit conversion
12. Checks whether any value in the list makes the condition true.
Any
The way NULL values are treated
Run scripts
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
13. NUMBER functions can be...
Retrieve
UNION operator
Nested
Running a script file
14. _________________ relationships are always optional relationships.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
V$
VALUES
Recursive
15. Explicit data type conversion is preferable to Oracle's...
NATURAL JOIN
12:00:00 A.M
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.
Implicit conversion
16. When you have issued a DELETE command - you can still ________ those rows and restore the information.
SELECT SYSDATE+1/96 - FROM dual
Retrieve
Inconsistencies
Time zone
17. The _______ operator determines common rows.
Details
Static or dynamic
INTERSECT
SELECT SYSDATE+1/96 - FROM dual
18. The ____________ command makes changes permanent.
A correct statement
4
DROP INDEX need_to_pass_i
COMMIT
19. The ROWID pseudocolumn is not an ________- but it acts like one.
RUN SCRIPT
A correct statement
Actual column
Data
20. In a view you can give a column a different name than it has in the...
The way NULL values are treated
Parent table
Rounded edges
Results
21. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
CLOB
Orphan
X
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
22. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.
FALSE
Retrieve
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.
Scale
23. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
VALUES clause of an INSERT statement
Extra spaces
Self-joins
24. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
LIKE
KEEP INDEX
Re-create
25. Explain how Substitution Variables are used when writing scripts.
2000
ROLLBACK
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.
Any
26. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
X
VALUES clause of an INSERT statement
Data
UTC
27. Write a statement that drops the index need_to_pass_i
Any
X
Combine
DROP INDEX need_to_pass_i
28. The key that most database designers prefer and is chosen by the system is the _____________ key.
SELECT SYSDATE+1/96 - FROM dual
Surrogate
KEEP INDEX
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
29. The ___________ operator tests whether a matching row cannot be found.
CLOB
Script
KEEP INDEX
X
30. A transaction is a...
Scale
Business problems
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Logical unit of work
31. Match each of the SQL commands on the left with a verb from the list.
Three
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
USER_ - ALL_ - DBA_ - and V$
DICT_COLUMNS
32. The query retrieves more than 5 to 15 percent of the rows
The indexed column is part of an expression. In this case - consider creating a function-based index instead
LIKE
ANY
GROUP BY
33. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
SELECT SYSDATE+1/96 - FROM dual
Export Data
Both MIN and MAX
TO_CHAR function
34. 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
35. 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?
All caps
DICTIONARY
FALSE
INNER JOIN
36. A join across three tables can be expressed with the ________ join syntax.
Both MIN and MAX
ANSI
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
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
37. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
ADD_MONTHS function
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.
12:00:00 A.M
38. The focus of the logical data model is _____________
Another null
Equijoin and correlated subquery
Business problems
DROP INDEX need_to_pass_i
39. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Self-joins
Static or dynamic
Re-create
MINUS
40. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
ON
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Nested
V$
41. Which one of the following string functions tells you how many characters are in a string?
COMMIT
IN ANY ALL SOME
LENGTH
Any
42. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Any
Results
Three
43. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
Rounded edges
Any
Committed
44. _________ rows are not allowed in the relational model.
LIKE
Another null
Orphan
Business problems
45. ____________ are useful for analyzing and exploring the relationships within your data
SELECT DISTINCT menu FROM restaurant
SELECT SYSDATE+1/96 - FROM dual
ON
Self-joins
46. What is the main difference between the NOT EXISTS and the NOT IN operators?
Common column value
The way NULL values are treated
Non-matching rows
X
47. In SQL Developer field names and table names are shown in the color _______.
ROLLBACK
Black
Any
Mathematical equations
48. List the reasons that a subquery could not be unnested.
Combine
DICT_COLUMNS
X
+
49. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
All
4
Leading-edge
ALL_OBJECTS
50. SELECT * FROM instructor ORDER BY phone
A correct statement
RIGHT LEFT JOIN
Retrieve
X