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 Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Committed
BETWEEN
Primary key/foreign key
Asterisk
2. The ____________ command makes changes permanent.
COMMIT
Rounded edges
Location of the file
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
3. The __________ operator is inclusive of the two values specified.
Fractional seconds
Retrieve
**** 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
BETWEEN
4. The TRUNC function on a date without a format model truncates the timestamp to...
V$
12:00:00 A.M
FALSE
VALUES clause of an INSERT statement
5. In SQL Developer field names and table names are shown in the color _______.
Non-matching rows
Black
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
Precision
6. 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.
Month ddth - yyyy
LENGTH
UNION
7. Explicit data type conversion is preferable to Oracle's...
Command returns the number of records returned by a query.
Implicit conversion
Committed
Self-joins
8. What does SQL stand for?
Details
Any
ADD_MONTHS function
Structured Query Language
9. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
Has not changed the name
Nested
RUN SCRIPT
10. The ALTER SESSION statement can change the session's...
Month ddth - yyyy
Time zone
Same
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
11. List the different types of data dictionary views.
Precision
Three
Non-matching rows
USER_ - ALL_ - DBA_ - and V$
12. FEEDBACK
Actual column
Any
Command returns the number of records returned by a query.
DESC dict;
13. Subqueries can return...
LENGTH
Multiple rows
DROP INDEX need_to_pass_i
Script
14. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Extra spaces
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
Nested
CLOB
15. The ________ operator cannot compare against a list of values.
FALSE
ADD
LIKE
ANSI
16. The purpose of the HAVING clause is to eliminate___________.
BETWEEN
Groups
Equijoin
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
17. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
MODIFY
FALSE
RUN SCRIPT
2000
18. Checks whether any value in the list makes the condition true.
SELECT DISTINCT menu FROM restaurant
X
VALUES clause of an INSERT statement
Any
19. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
Null
ON
Re-create
20. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Script
+
ADD
KEEP INDEX
21. LINESIZE
Semicolon or forward slash
DD-MON-YY
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Command returns the number of records returned by a query.
22. The _______ operator determines common rows.
Recursive
INTERSECT
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.
Scalar
23. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
Precision
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Actual column
24. Write the syntax to rename index just_two_more_weeks_i to finally_i
Semicolon or forward slash
Export Data
RENAME just_two_more_weeks TO finally_i
2000
25. Explain why constraints are used when building tables.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
26. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Has not changed the name
Details
ALL_OBJECTS
Re-create
27. The ______ depicts the M of a 1:M relationship.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
28. Explain how the SPOOL command is used and what program it can be used in.
GROUP BY
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.
UTC
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. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
999999.9999
ANY
X
When the table is small (unless your business rules require you too)
30. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
COMMIT
NATURAL JOIN
Three
31. Which one of the following string functions tells you how many characters are in a string?
4
UNION
LENGTH
All caps
32. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Details
Combine
Same
Columns
33. The _______ function adds values together for a group of rows.
ROLLBACK
Equijoin
SUM
X
34. A transaction is a...
ROLLBACK
Logical unit of work
INTERSECT
VALUES
35. It is considered good form to put all SQL commands in...
Leading-edge
INTERSECT
2000
All caps
36. Joins involving multiple columns must always follow the ____________ relationship path.
TO_CHAR function
Primary key/foreign key
INTERSECT
Common column value
37. List the steps performed by a correlated subquery.
Data
Any
**** 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
Extra spaces
38. When is it not a good idea to use an index?
UTC
When the table is small (unless your business rules require you too)
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
**** 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
39. The time zone displacement value indicates the time difference from _______.
UTC
999999.9999
Rounded edges
Both MIN and MAX
40. Which operator is most commonly used?
Extra spaces
UNION
All
COMMIT
41. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
DD-MON-YY
STORAGE
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
UNION operator
42. The RTRIM function is useful for eliminating ________ in a string.
Extra spaces
SET clause of an UPDATE statement
Default is 14; when you use the default - you repeat the heading every 14 rows.
Surrogate
43. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
ANSI
ON
Hide data
X
44. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
Common column value
Equijoin and identical column names
ANY
45. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
ADD
@ or START
Equijoin
Groups
46. SELECT LIST of a subquery in an INSERT statement
Optional
Multiple rows
SET clause of an UPDATE statement
Any
47. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
LENGTH
COMMIT
Results
Export Data
48. The ______ operator compares a list of values for equivalency
Command returns the number of records returned by a query.
ANY
Implicit conversion
Month ddth - yyyy
49. 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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
99.99
Combine
50. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Nested
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
Equijoin and correlated subquery
DD-MON-YY