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. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
Equijoin and identical column names
Correlated
Time zone
2. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Details
MINUS
Command returns the number of records returned by a query.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
3. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
Implicit conversion
Actual column
DROP INDEX need_to_pass_i
4. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Surrogate key
Recursive
Mathematical equations
+
5. When is it not a good idea to use an index?
Three
When the table is small (unless your business rules require you too)
All
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
6. Explain in detail the impact of INDEXES and how they are used by Oracle.
Retrieve
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
Month ddth - yyyy
Correlated
7. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Structured Query Language
**** 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
Parent table
DICT_COLUMNS
8. Explain the steps needed to run a script in SQL Developer
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.
RENAME just_two_more_weeks TO finally_i
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.
9. The ___________ operator tests whether a matching row cannot be found.
X
Multiple rows
TO_CHAR function
Script
10. How many characters can you have using the VARCHAR data type?
BETWEEN
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
4000
Any
11. Dynamic views begin with a ___________.
V$
LIKE
ANY
Has not changed the name
12. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
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
Committed
Same
DICT_COLUMNS
13. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Columns
Details
User-defined reports
Retrieve
14. A calculation with a null always yields...
Another null
When the table is small (unless your business rules require you too)
CLOB
2000
15. You use the _________ keyword to add columns or constraints to a table.
X
ADD
Combine
ANSI
16. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Optional
+
Groups
4
17. 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
18. SELECT * FROM instructor ORDER BY phone
UNION
A correct statement
Self-joins
Scalar
19. Comparison operators can compare multiple _________________.
Columns
Scale
ALL_OBJECTS
Rounded edges
20. The time zone displacement value indicates the time difference from _______.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
UTC
**** 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
DECODE
21. Oracle uses the outer join operator to indicate that nulls are shown for...
Null
Inconsistencies
Scale
Non-matching rows
22. The _______ function adds values together for a group of rows.
ANSI
B-Tree Index
SUM
Precision
23. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
Script
Structured Query Language
User-defined reports
24. Explain what a static data dictionary view is and how it is used
Same
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
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.
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.
25. What is the most common DATE format found in SQL?
DD-MON-YY
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
IN ANY ALL SOME
Retrieve
26. What are the main components of a ROWID?
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.
Primary key/foreign key
ANY
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.
27. Which format mask displays December 31st - 1999?
Committed
ANSI
Month ddth - yyyy
Static or dynamic
28. List 4 aggregate functions
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Surrogate
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Running a script file
29. When you run a script in SQL*Plus you must give the...
Structured Query Language
Location of the file
INTERSECT
SELECT SYSDATE+1/96 - FROM dual
30. Users can only see changes made to a database once they have been...
Committed
Run scripts
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.
31. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
FALSE
ALL_OBJECTS
RIGHT LEFT JOIN
Self-joins
32. 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
Leading-edge
UNION operator
Logical unit of work
33. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
12:00:00 A.M
DD-MON-YY
34. What is the tab in SQL Developer where data dictionary view information can be found?
Script
Details
Any
Equijoin
35. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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
Orphan
MINUS
36. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Crow's foot
FALSE
Optional
Nested
37. A join across three tables can be expressed with the ________ join syntax.
FALSE
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
MODIFY
ANSI
38. Explain how the SPOOL command is used and what program it can be used in.
FALSE
Month ddth - yyyy
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
39. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
RENAME just_two_more_weeks TO finally_i
BETWEEN
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.
40. The ________ operator cannot compare against a list of values.
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.
X
LIKE
Common column value
41. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.
Has not changed the name
Results
12:00:00 A.M
Any
42. The purpose of the HAVING clause is to eliminate___________.
Black
Groups
Any
MINUS
43. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Hide data
ADD_MONTHS function
All
44. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
Logical unit of work
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Nested
45. SELECT LIST of a subquery in an INSERT statement
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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.
DROP INDEX need_to_pass_i
SET clause of an UPDATE statement
46. The _______ operator determines common rows.
INTERSECT
ALL_OBJECTS
A correct statement
Parent table
47. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
STORAGE
FALSE
Mathematical equations
48. In SQL Developer field names and table names are shown in the color _______.
Black
X
Nested
Scalar
49. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Command returns the number of records returned by a query.
NATURAL JOIN
Has not changed the name
A correct statement
50. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
4
Script
LENGTH
STORAGE