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 NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
VALUES clause of an INSERT statement
Correlated
All
ADD_MONTHS function
2. The __________ operator is inclusive of the two values specified.
BETWEEN
MODIFY
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
MINUS
3. SELECT LIST of a subquery in an INSERT statement
DD-MON-YY
The way NULL values are treated
SET clause of an UPDATE statement
Mathematical equations
4. What are the main components of a ROWID?
A correct statement
Three
KEEP INDEX
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.
5. NUMBER functions can be...
User-defined reports
NATURAL JOIN
MINUS
Nested
6. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
X
Has not changed the name
User-defined reports
FALSE
7. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Command returns the number of records returned by a query.
Equijoin and correlated subquery
STORAGE
DESC dict;
8. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
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.
IN ANY ALL SOME
The indexed column is part of an expression. In this case - consider creating a function-based index instead
LIKE
9. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
All
COMMIT
Results
10. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
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
Equijoin
UNION
11. The ____________ command makes changes permanent.
GROUP BY
Three
INTERSECT
COMMIT
12. Write a solution that adds 20 minutes to a given date.
A correct statement
SELECT SYSDATE+1/96 - FROM dual
Hide data
INTERSECT
13. The _______ operator determines common rows.
Committed
INTERSECT
RIGHT LEFT JOIN
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.
14. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
**** 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
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Equijoin and identical column names
15. The key that most database designers prefer and is chosen by the system is the _____________ key.
CLOB
Surrogate
VALUES
ANY
16. The COUNT function uses the __________ wildcard.
Asterisk
All
Run scripts
MINUS
17. You can pass parameters from the operating system when ___________ in SQl*Plus
Equijoin and identical column names
RENAME just_two_more_weeks TO finally_i
RUN SCRIPT
Running a script file
18. PAGESIZE
DECODE
Default is 14; when you use the default - you repeat the heading every 14 rows.
DROP INDEX need_to_pass_i
Business problems
19. You use the __________ keyword to change characteristics of a column.
MODIFY
LENGTH
Self-joins
SUM
20. Another name for a data dictionary view is __________________ or _________________.
ADD
Business problems
Static or dynamic
Inconsistencies
21. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
UNION
Orphan
ADD_MONTHS function
22. 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?
DICTIONARY
RIGHT LEFT JOIN
Crow's foot
UNION operator
23. To join four tables - you must have at least _____ join conditions.
V$
KEEP INDEX
FALSE
Three
24. ____________ are useful for analyzing and exploring the relationships within your data
User-defined reports
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
Results
Self-joins
25. What does SQL stand for?
Another null
Equijoin and identical column names
Structured Query Language
Implicit conversion
26. You can use the ________________ to subtract months from a given date.
V$
ADD_MONTHS function
999999.9999
GROUP BY
27. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
Correlated
4000
Primary key/foreign key
28. Which operator is most commonly used?
Three
Recursive
UNION
SELECT DISTINCT menu FROM restaurant
29. To equijoin a table with another table involves matching the...
DICT_COLUMNS
Testing functions
Common column value
Run scripts
30. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Export Data
Correlated
SELECT SYSDATE+1/96 - FROM dual
Any
31. A transaction is a...
TO_CHAR function
Equijoin and identical column names
Logical unit of work
User-defined reports
32. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
TO_CHAR function
999999.9999
KEEP INDEX
33. What is the maximum value for a column defined as NUMBER(4 -2)?
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
99.99
Rounded edges
Both MIN and MAX
34. Explain how Substitution Variables are used when writing scripts.
User-defined reports
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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.
12:00:00 A.M
35. 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
36. A calculation with a null always yields...
Another null
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
X
Combine
37. What is the first column of a composite index called?
Leading-edge
4000
SELECT DISTINCT menu FROM restaurant
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
38. __________________ inserts the current date and time.
Mathematical equations
DECODE
Retrieve
SYSDATE
39. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
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.
**** 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
Running a script file
Same
40. What do views do that makes them so useful for security?
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Logical unit of work
Hide data
Asterisk
41. Explain what a static data dictionary view is and how it is used
V$
Semicolon or forward slash
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.
Command returns the number of records returned by a query.
42. Which one of the following string functions tells you how many characters are in a string?
DD-MON-YY
The indexed column is part of an expression. In this case - consider creating a function-based index instead
LENGTH
STORAGE
43. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
MODIFY
COMMIT
X
Logical unit of work
44. Explain the steps needed to run a script in SQL Developer
Rounded edges
Location of the file
User-defined reports
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.
45. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Columns
Semicolon or forward slash
DICT_COLUMNS
X
46. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
Semicolon or forward slash
Inconsistencies
Has not changed the name
47. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
F12
User-defined reports
Running a script file
Leading-edge
48. 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
49. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Black
ON
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
ROLLBACK
50. Explain in detail the impact of INDEXES and how they are used by Oracle.
Static or dynamic
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
Correlated
Business problems