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 _______ function adds values together for a group of 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.
INTERSECT
SUM
X
2. Another name for a data dictionary view is __________________ or _________________.
Self-joins
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
Static or dynamic
X
3. A calculation with a null always yields...
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
Another null
Actual column
**** 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
4. __________________ inserts the current date and time.
DD-MON-YY
SYSDATE
Null
All
5. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
VALUES clause of an INSERT statement
Both MIN and MAX
F12
Implicit conversion
6. Returns rows if the condition is true for all the values in the list
SELECT SYSDATE+1/96 - FROM dual
Optional
2000
All
7. Comparison operators can compare multiple _________________.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
VALUES
Columns
ADD_MONTHS function
8. You use the _________ keyword to add columns or constraints to a table.
RENAME just_two_more_weeks TO finally_i
ADD
Logical unit of work
ALL_OBJECTS
9. Self-joins are useful for performing comparisons and checking for ___________ in data.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Inconsistencies
DROP INDEX need_to_pass_i
Scale
10. Explain how Dynamic SQL is used and give an example of a Dynamic SQL 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.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Non-matching rows
ON
11. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
UNION
999999.9999
Any
Script
12. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
MODIFY
Correlated
ALL_OBJECTS
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.
13. The RTRIM function is useful for eliminating ________ in a string.
RENAME just_two_more_weeks TO finally_i
Extra spaces
4000
The indexed column is part of an expression. In this case - consider creating a function-based index instead
14. The query retrieves more than 5 to 15 percent of the rows
Twice
4000
When the table is small (unless your business rules require you too)
The indexed column is part of an expression. In this case - consider creating a function-based index instead
15. What is the tab in SQL Developer where data dictionary view information can be found?
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.
Details
Primary key/foreign key
Any
16. 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.
Columns
Correlated
VALUES
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.
17. SELECT * FROM instructor ORDER BY phone
DESC dict;
A correct statement
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
MODIFY
18. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
The indexed column is part of an expression. In this case - consider creating a function-based index instead
X
The way NULL values are treated
19. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
RUN SCRIPT
ALL_OBJECTS
Recursive
999999.9999
20. 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
21. The time zone displacement value indicates the time difference from _______.
Common column value
LENGTH
Any
UTC
22. Explain the steps needed to run a script in SQL Developer
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Precision
SELECT DISTINCT menu FROM restaurant
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.
23. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
ROLLBACK
4
NATURAL JOIN
UNION operator
24. Checks whether any value in the list makes the condition true.
Any
+
Extra spaces
X
25. The TRUNC function on a date without a format model truncates the timestamp to...
Black
Recursive
12:00:00 A.M
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.
26. 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.
Hide data
RIGHT LEFT JOIN
X
Primary key/foreign key
27. The purpose of the HAVING clause is to eliminate___________.
Groups
The way NULL values are treated
Equijoin and identical column names
Re-create
28. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Scale
ANSI
DESC dict;
NATURAL JOIN
29. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Any
Testing functions
User-defined reports
Columns
30. _________________ relationships are always optional relationships.
B-Tree Index
Equijoin
Precision
Recursive
31. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
UNION operator
2000
Three
32. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
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.
Null
STORAGE
B-Tree Index
33. The COUNT function is useful for determining whether a table has...
Data
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Implicit conversion
Orphan
34. List the reasons that a subquery could not be unnested.
Fractional seconds
X
ADD_MONTHS function
Recursive
35. The DUAL table can be used for...
Null
Primary key/foreign key
Testing functions
The way NULL values are treated
36. Explain what is found in the All Objects report folder in SQL Developer
DECODE
Export Data
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Twice
37. To equijoin a table with another table involves matching 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
ANY
INTERSECT
Common column value
38. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
SET clause of an UPDATE statement
Combine
**** 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
RUN SCRIPT
39. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Extra spaces
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
Semicolon or forward slash
Rounded edges
40. _________ rows are not allowed in the relational model.
Three
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Orphan
Business problems
41. The ___________ operator tests whether a matching row cannot be found.
SYSDATE
Same
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.
X
42. The _____________ clause determines how rows are grouped.
RENAME just_two_more_weeks TO finally_i
Hide data
DESC dict;
GROUP BY
43. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RENAME just_two_more_weeks TO finally_i
X
Has not changed the name
RUN SCRIPT
44. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
Both MIN and MAX
Any
Has not changed the name
45. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
IN ANY ALL SOME
Three
TO_CHAR function
BETWEEN
46. 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.
Both MIN and MAX
Has not changed the name
DROP INDEX need_to_pass_i
Combine
47. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
ON
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.
Asterisk
48. To restart a sequence at a lower number - you can drop and ________ the sequence.
Optional
SELECT DISTINCT menu FROM restaurant
Re-create
Orphan
49. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
DICT_COLUMNS
Hide data
4000
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
50. The __________ operator is inclusive of the two values specified.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
DESC dict;
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