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. Checks whether any value in the list makes the condition true.
LIKE
Any
Business problems
SYSDATE
2. PAGESIZE
RIGHT LEFT JOIN
Default is 14; when you use the default - you repeat the heading every 14 rows.
RENAME just_two_more_weeks TO finally_i
999999.9999
3. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
ON
Correlated
Three
Scale
4. The query retrieves more than 5 to 15 percent of the rows
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Script
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Rounded edges
5. 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.
All caps
2000
INTERSECT
RIGHT LEFT JOIN
6. What are the main components of a ROWID?
ANSI
Logical unit of work
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.
Actual column
7. The COUNT function is useful for determining whether a table has...
Any
Data
MINUS
SELECT DISTINCT menu FROM restaurant
8. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
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
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
SELECT SYSDATE+1/96 - FROM dual
9. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Rounded edges
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
4
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
10. Comparison operators can compare multiple _________________.
DECODE
Columns
SYSDATE
FALSE
11. Converting a text literal to DATE format requires the use of the...
F12
ANY
TO_CHAR function
A correct statement
12. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Correlated
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
RENAME just_two_more_weeks TO finally_i
Black
13. Which operator is most commonly used?
UNION
Run scripts
RENAME just_two_more_weeks TO finally_i
Testing functions
14. A _________ subquery returns a single column with a single row
INNER JOIN
FALSE
FALSE
Scalar
15. Self-joins are useful for performing comparisons and checking for ___________ in data.
SUM
Groups
Inconsistencies
All caps
16. Which one of the following string functions tells you how many characters are in a string?
LENGTH
DICT_COLUMNS
@ or START
User-defined reports
17. In a view you can give a column a different name than it has in the...
VALUES clause of an INSERT statement
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Parent table
DROP INDEX need_to_pass_i
18. What is the tab in SQL Developer where data dictionary view information can be found?
Details
CLOB
Correlated
NATURAL JOIN
19. What is the name of the key automatically generated from a sequence?
Surrogate key
RENAME just_two_more_weeks TO finally_i
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.
SYSDATE
20. Write a solution that adds 20 minutes to a given date.
CLOB
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Has not changed the name
SELECT SYSDATE+1/96 - FROM dual
21. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
X
Parent table
Both MIN and MAX
Common column value
22. 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.
Columns
Groups
X
23. The _______ function adds values together for a group of rows.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
SELECT SYSDATE+1/96 - FROM dual
SUM
Implicit conversion
24. When column names on the tables are different - you use the ______ condition.
ON
**** 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
Logical unit of work
MODIFY
25. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Fractional seconds
Export Data
26. Dynamic views begin with a ___________.
DICT_COLUMNS
V$
STORAGE
Parent table
27. The ___________ operator tests whether a matching row cannot be found.
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
User-defined reports
Surrogate key
28. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Precision
Null
Common column value
Script
29. NUMBER functions can be...
VALUES clause of an INSERT statement
Semicolon or forward slash
Nested
Inconsistencies
30. What does SQL stand for?
Structured Query Language
CLOB
Multiple rows
SET clause of an UPDATE statement
31. 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?
Nested
CLOB
DICTIONARY
Common column value
32. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Hide data
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Groups
+
33. SQL*Plus is used more than SQL Developer when you need to...
Non-matching rows
Logical unit of work
99.99
Run scripts
34. You use the __________ keyword to change characteristics of a column.
Another null
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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
35. Another name for a data dictionary view is __________________ or _________________.
Any
Static or dynamic
RIGHT LEFT JOIN
Parent table
36. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
Default is 14; when you use the default - you repeat the heading every 14 rows.
LIKE
Implicit conversion
37. The TRUNC function on a date without a format model truncates the timestamp to...
All
Combine
Command returns the number of records returned by a query.
12:00:00 A.M
38. The DUAL table can be used for...
UNION
VALUES
Rounded edges
Testing functions
39. The focus of the logical data model is _____________
Surrogate key
MINUS
Business problems
Scale
40. Explain what is found in the All Objects report folder in SQL Developer
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
BETWEEN
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
41. When is it not a good idea to use an index?
Logical unit of work
Committed
F12
When the table is small (unless your business rules require you too)
42. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
LENGTH
Optional
MODIFY
X
43. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Rounded edges
STORAGE
IN ANY ALL SOME
The indexed column is part of an expression. In this case - consider creating a function-based index instead
44. _________________ relationships are always optional relationships.
Recursive
BETWEEN
Actual column
Asterisk
45. The same function can be used ______ in a SELECT statement.
B-Tree Index
Leading-edge
Parent table
Twice
46. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
Nested
User-defined reports
Crow's foot
47. What is the first column of a composite index called?
Inconsistencies
12:00:00 A.M
Parent table
Leading-edge
48. The term ____________ ___________ is used to express a join that satisfies the join condition.
User-defined reports
INNER JOIN
COMMIT
Groups
49. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Committed
A correct statement
Hide data
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. What is the data type you can use if you need an unlimited number of textual characters?
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.
ANY
CLOB
SUM