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.
A correct statement
INNER JOIN
DICTIONARY
BETWEEN
2. A join across three tables can be expressed with the ________ join syntax.
Recursive
X
ANSI
TO_CHAR function
3. What does the following function return? SELECT LENGTH(NULL) - FROM dual
RUN SCRIPT
Month ddth - yyyy
Null
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
4. The _______ function adds values together for a group of rows.
Extra spaces
SUM
The indexed column is part of an expression. In this case - consider creating a function-based index instead
ANSI
5. The ALTER SESSION statement can change the session's...
Implicit conversion
Results
B-Tree Index
Time zone
6. Subqueries can return...
4000
Multiple rows
Command returns the number of records returned by a query.
Extra spaces
7. Explain how the SPOOL command is used and what program it can be used in.
F12
Month ddth - yyyy
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
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
8. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
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
Retrieve
Equijoin
9. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
B-Tree Index
Equijoin and identical column names
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
10. Explain how Substitution Variables are used when writing scripts.
User-defined reports
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.
Export Data
Any
11. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
X
Rounded edges
Equijoin and identical column names
12. Which operator is most commonly used?
Leading-edge
UNION
NATURAL JOIN
Re-create
13. 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
14. The ________ operator cannot compare against a list of values.
Surrogate key
LIKE
ANY
12:00:00 A.M
15. ____________ are useful for analyzing and exploring the relationships within your data
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.
DICT_COLUMNS
USER_ - ALL_ - DBA_ - and V$
Self-joins
16. Write a statement for SQL*Plus that shows the dictionary.
Default is 14; when you use the default - you repeat the heading every 14 rows.
DESC dict;
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
RIGHT LEFT JOIN
17. You use the _________ keyword to add columns or constraints to a table.
ADD
LENGTH
KEEP INDEX
RIGHT LEFT JOIN
18. How many characters can you have using the VARCHAR data type?
4000
RENAME just_two_more_weeks TO finally_i
COMMIT
SUM
19. What are the main components of a ROWID?
Crow's foot
GROUP BY
Command returns the number of records returned by a query.
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.
20. The _____________ clause determines how rows are grouped.
GROUP BY
ON
Time zone
Default is 14; when you use the default - you repeat the heading every 14 rows.
21. It is considered good form to put all SQL commands in...
**** 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
All caps
X
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
22. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Structured Query Language
LENGTH
DESC dict;
Optional
23. A transaction is a...
DESC dict;
Groups
Actual column
Logical unit of work
24. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
X
Both MIN and MAX
INTERSECT
Actual column
25. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
DD-MON-YY
SELECT DISTINCT menu FROM restaurant
Any
Combine
26. Another name for a data dictionary view is __________________ or _________________.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Extra spaces
Static or dynamic
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.
27. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Details
Optional
28. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
INNER JOIN
Semicolon or forward slash
X
Results
29. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
Recursive
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
ANY
30. To equijoin a table with another table involves matching the...
Equijoin and correlated subquery
Common column value
SYSDATE
Leading-edge
31. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
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
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
User-defined reports
32. The COUNT function uses the __________ wildcard.
DD-MON-YY
Static or dynamic
Asterisk
ANY
33. What is the tab in SQL Developer where data dictionary view information can be found?
Details
ANSI
Default is 14; when you use the default - you repeat the heading every 14 rows.
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.
34. Queries that are found in parentheses are done first - just as in the order of operations when doing...
X
Business problems
Recursive
Mathematical equations
35. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Actual column
User-defined reports
Command returns the number of records returned by a query.
+
36. Comparison operators can compare multiple _________________.
Re-create
ADD_MONTHS function
Columns
IN ANY ALL SOME
37. What is the data type you can use if you need an unlimited number of textual characters?
Precision
Nested
CLOB
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
38. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Asterisk
Common column value
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
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
39. Joins involving multiple columns must always follow the ____________ relationship path.
STORAGE
Primary key/foreign key
ADD_MONTHS function
All
40. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
UNION operator
Hide data
999999.9999
Any
41. Which one of the following string functions tells you how many characters are in a string?
LENGTH
Re-create
Combine
Mathematical equations
42. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
F12
GROUP BY
Rounded edges
43. 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.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Recursive
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
VALUES
44. What is the most common DATE format found in SQL?
BETWEEN
DD-MON-YY
DROP INDEX need_to_pass_i
Fractional seconds
45. To join four tables - you must have at least _____ join conditions.
Three
Crow's foot
LENGTH
4000
46. The ____________ command makes changes permanent.
BETWEEN
Static or dynamic
COMMIT
Asterisk
47. When you run a script in SQL*Plus you must give the...
Equijoin and identical column names
Precision
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Location of the file
48. The time zone displacement value indicates the time difference from _______.
UTC
DD-MON-YY
Re-create
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
49. What is the name of the key automatically generated from a sequence?
Surrogate key
Groups
UNION operator
ADD
50. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Script
4
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Leading-edge