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. Queries that are found in parentheses are done first - just as in the order of operations when doing...
ON
The way NULL values are treated
MODIFY
Mathematical equations
2. What is the maximum value for a column defined as NUMBER(4 -2)?
ADD
99.99
Orphan
**** 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
3. Write a statement for SQL*Plus that shows the dictionary.
Month ddth - yyyy
ALL_OBJECTS
GROUP BY
DESC dict;
4. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
STORAGE
SELECT DISTINCT menu FROM restaurant
Equijoin
5. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
TO_CHAR function
+
COMMIT
ANSI
6. List 4 aggregate functions
Results
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
4000
7. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
UNION
UNION operator
ROLLBACK
Any
8. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Parent table
IN ANY ALL SOME
Mathematical equations
Any
9. UNION ALL does not sort - therefore it is less time consuming to use than the...
Has not changed the name
DD-MON-YY
Self-joins
UNION operator
10. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Script
SELECT DISTINCT menu FROM restaurant
Another null
Equijoin and correlated subquery
11. Explain how the SPOOL command is used and what program it can be used in.
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
Static or dynamic
MINUS
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
12. __________________ inserts the current date and time.
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.
Location of the file
SYSDATE
X
13. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
Export Data
Orphan
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. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
LENGTH
Combine
Nested
15. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
FALSE
DICT_COLUMNS
Any
Combine
16. 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
17. Write the syntax to rename index just_two_more_weeks_i to finally_i
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.
Crow's foot
RENAME just_two_more_weeks TO finally_i
Surrogate
18. Checks whether any value in the list makes the condition true.
Multiple rows
Any
V$
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.
19. 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.
Fractional seconds
BETWEEN
Has not changed the name
Actual column
20. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
X
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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Hide data
21. Users can only see changes made to a database once they have been...
MODIFY
Committed
Mathematical equations
Equijoin
22. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Another null
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
Inconsistencies
Retrieve
23. The __________ operator is inclusive of the two values specified.
BETWEEN
CLOB
Logical unit of work
COMMIT
24. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Equijoin and correlated subquery
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
INNER JOIN
Scale
25. List the different types of data dictionary views.
TO_CHAR function
USER_ - ALL_ - DBA_ - and V$
Precision
2000
26. To equijoin a table with another table involves matching the...
Crow's foot
GROUP BY
Common column value
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
27. Joins involving multiple columns must always follow the ____________ relationship path.
ADD_MONTHS function
Nested
Default is 14; when you use the default - you repeat the heading every 14 rows.
Primary key/foreign key
28. When column names on the tables are different - you use the ______ condition.
**** 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
ON
BETWEEN
Multiple rows
29. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
DESC dict;
Running a script file
Default is 14; when you use the default - you repeat the heading every 14 rows.
30. FEEDBACK
Command returns the number of records returned by a query.
FALSE
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
31. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
TO_CHAR function
Precision
ROLLBACK
999999.9999
32. Explain what a static data dictionary view is and how it is used
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.
NATURAL JOIN
Rounded edges
Scale
33. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Both MIN and MAX
Combine
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Orphan
34. Checks whether any value in the list makes the condition true.
INTERSECT
Recursive
MINUS
Any
35. To join four tables - you must have at least _____ join conditions.
Has not changed the name
Retrieve
Three
Running a script file
36. The _______ function lets you perform if-then-else functionality with the SQL language.
Equijoin and correlated subquery
INTERSECT
DECODE
Details
37. LINESIZE
DESC dict;
Business problems
Data
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
38. The key that most database designers prefer and is chosen by the system is the _____________ key.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Surrogate
F12
Asterisk
39. What is the tab in SQL Developer where data dictionary view information can be found?
999999.9999
Details
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
40. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
MODIFY
IN ANY ALL SOME
Precision
41. The _____________ clause determines how rows are grouped.
GROUP BY
Details
The indexed column is part of an expression. In this case - consider creating a function-based index instead
**** 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
42. The purpose of the HAVING clause is to eliminate___________.
Groups
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
RIGHT LEFT JOIN
ADD
43. The _______ function adds values together for a group of rows.
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
SET clause of an UPDATE statement
SUM
KEEP INDEX
44. The same function can be used ______ in a SELECT statement.
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.
Actual column
Equijoin and identical column names
Twice
45. The query retrieves more than 5 to 15 percent of the rows
Twice
The indexed column is part of an expression. In this case - consider creating a function-based index instead
F12
Any
46. What is the name of the key automatically generated from a sequence?
Retrieve
ANY
Surrogate key
GROUP BY
47. A _________ subquery returns a single column with a single row
Extra spaces
COMMIT
Scalar
Static or dynamic
48. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
49. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
GROUP BY
Script
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.
50. Explain in detail the impact of INDEXES and how they are used by Oracle.
TO_CHAR function
12:00:00 A.M
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
RENAME just_two_more_weeks TO finally_i