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.
Implicit conversion
IN ANY ALL SOME
BETWEEN
Same
2. What are the main components of a ROWID?
Multiple rows
Actual column
NATURAL JOIN
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.
3. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
MODIFY
4000
Self-joins
4. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
DD-MON-YY
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
Recursive
5. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Leading-edge
Crow's foot
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
6. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
ANY
When the table is small (unless your business rules require you too)
Rounded edges
X
7. The ALTER SESSION statement can change the session's...
Three
Non-matching rows
Testing functions
Time zone
8. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Combine
The indexed column is part of an expression. In this case - consider creating a function-based index instead
BETWEEN
Results
9. You use the _________ keyword to add columns or constraints to a table.
Testing functions
Three
ADD
Surrogate key
10. 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.
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
Has not changed the name
Common column value
IN ANY ALL SOME
11. The RTRIM function is useful for eliminating ________ in a string.
Has not changed the name
Extra spaces
Multiple rows
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. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
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
STORAGE
Surrogate
FALSE
13. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Equijoin
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Three
14. UNION ALL does not sort - therefore it is less time consuming to use than the...
Equijoin
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
UNION operator
15. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
B-Tree Index
**** 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
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
16. When you run a script in SQL*Plus you must give the...
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
Three
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Location of the file
17. In SQL Developer field names and table names are shown in the color _______.
Static or dynamic
Black
DESC dict;
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
18. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
LIKE
User-defined reports
12:00:00 A.M
Committed
19. Checks whether any value in the list makes the condition true.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Any
Inconsistencies
BETWEEN
20. When is it not a good idea to use an index?
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.
4000
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 the table is small (unless your business rules require you too)
21. You use the __________ keyword to change characteristics of a column.
Has not changed the name
B-Tree Index
FALSE
MODIFY
22. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Surrogate key
Has not changed the name
4
X
23. The _______ operator determines common rows.
SELECT SYSDATE+1/96 - FROM dual
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.
Any
INTERSECT
24. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Mathematical equations
MINUS
GROUP BY
Surrogate key
25. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
UNION operator
Rounded edges
Equijoin and correlated subquery
26. 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
27. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
ADD_MONTHS function
Multiple rows
Time zone
Correlated
28. The purpose of the HAVING clause is to eliminate___________.
Groups
Logical unit of work
Details
B-Tree Index
29. The _______ function adds values together for a group of rows.
ANSI
Parent table
SUM
V$
30. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Any
Scale
4
ROLLBACK
31. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Static or dynamic
All
ROLLBACK
Details
32. LINESIZE
Re-create
Parent table
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Null
33. Write the syntax to rename index just_two_more_weeks_i to finally_i
Surrogate key
Leading-edge
RENAME just_two_more_weeks TO finally_i
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
34. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Mathematical equations
The way NULL values are treated
Self-joins
DECODE
35. List the different types of data dictionary views.
ON
Structured Query Language
USER_ - ALL_ - DBA_ - and V$
ANSI
36. PAGESIZE
BETWEEN
Default is 14; when you use the default - you repeat the heading every 14 rows.
Mathematical equations
Parent table
37. The ________ operator cannot compare against a list of values.
LIKE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Fractional seconds
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
38. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
SELECT SYSDATE+1/96 - FROM dual
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Equijoin
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
39. The ______ operator compares a list of values for equivalency
A correct statement
Location of the file
ANY
RUN SCRIPT
40. The _____________ clause determines how rows are grouped.
Export Data
GROUP BY
Static or dynamic
SELECT DISTINCT menu FROM restaurant
41. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Any
Location of the file
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Semicolon or forward slash
42. Explain what is found in the All Objects report folder in SQL Developer
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.
Run scripts
INNER JOIN
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
43. Dynamic views begin with a ___________.
2000
DD-MON-YY
V$
FALSE
44. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
ON
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
KEEP INDEX
Optional
45. To restart a sequence at a lower number - you can drop and ________ the sequence.
UNION
Re-create
INTERSECT
Mathematical equations
46. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
UTC
Run scripts
NATURAL JOIN
47. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Run scripts
SUM
Self-joins
48. Converting a text literal to DATE format requires the use of the...
Location of the file
FALSE
Details
TO_CHAR function
49. _________________ relationships are always optional relationships.
12:00:00 A.M
RIGHT LEFT JOIN
Recursive
GROUP BY
50. What is the maximum value for a column defined as NUMBER(4 -2)?
Crow's foot
DECODE
99.99
Month ddth - yyyy