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. List the reasons that a subquery could not be unnested.
X
UTC
Multiple rows
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
2. To equijoin a table with another table involves matching the...
RIGHT LEFT 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
Any
Common column value
3. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
NATURAL JOIN
Twice
LIKE
4. Write a solution that adds 20 minutes to a given date.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Mathematical equations
ADD_MONTHS function
SELECT SYSDATE+1/96 - FROM dual
5. 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.
ON
Twice
Time zone
6. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
4
UNION
Surrogate
7. The DUAL table can be used for...
Hide data
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.
ANSI
Testing functions
8. You use the __________ keyword to change characteristics of a column.
Committed
MODIFY
Primary key/foreign key
Command returns the number of records returned by a query.
9. How many characters can be stored in the CHAR column/field?
BETWEEN
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.
A correct statement
2000
10. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Self-joins
4
MINUS
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
11. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
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
Precision
12. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Results
Orphan
Script
Hide data
13. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
Optional
ADD_MONTHS function
Committed
14. A calculation with a null always yields...
Default is 14; when you use the default - you repeat the heading every 14 rows.
DD-MON-YY
Another null
Surrogate
15. Match each of the SQL commands on the left with a verb from the list.
+
MODIFY
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
16. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
X
Month ddth - yyyy
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.
17. Self-joins are useful for performing comparisons and checking for ___________ in data.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Twice
Columns
Inconsistencies
18. Checks whether any value in the list makes the condition true.
BETWEEN
COMMIT
F12
Any
19. FEEDBACK
VALUES clause of an INSERT statement
Columns
Command returns the number of records returned by a query.
**** 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
20. What is the tab in SQL Developer where data dictionary view information can be found?
Orphan
DECODE
Details
4000
21. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.
SUM
@ or START
FALSE
INTERSECT
22. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
UNION operator
Same
INTERSECT
ADD_MONTHS function
23. List 4 aggregate functions
SET clause of an UPDATE statement
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
ALL_OBJECTS
Equijoin
24. The COUNT function uses the __________ wildcard.
UNION
F12
Asterisk
Testing functions
25. UNION ALL does not sort - therefore it is less time consuming to use than the...
INTERSECT
ON
Implicit conversion
UNION operator
26. A _________ subquery returns a single column with a single row
Scalar
Committed
ANY
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
27. You can pass parameters from the operating system when ___________ in SQl*Plus
ADD
Running a script file
SYSDATE
Same
28. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
ANY
Another null
SUM
Results
29. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
2000
FALSE
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.
30. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Testing functions
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Equijoin and correlated subquery
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
31. Oracle uses the outer join operator to indicate that nulls are shown for...
ALL_OBJECTS
Non-matching rows
4
999999.9999
32. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Another null
Common column value
Groups
RUN SCRIPT
33. Joins involving multiple columns must always follow the ____________ relationship path.
Nested
Same
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Primary key/foreign key
34. The ______ operator compares a list of values for equivalency
V$
Null
Actual column
ANY
35. The TRUNC function on a date without a format model truncates the timestamp to...
Logical unit of work
Both MIN and MAX
12:00:00 A.M
Crow's foot
36. The ___________ operator tests whether a matching row cannot be found.
CLOB
ANY
X
VALUES
37. __________________ inserts the current date and time.
ADD
Rounded edges
Results
SYSDATE
38. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Mathematical equations
2000
Leading-edge
999999.9999
39. LINESIZE
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
Asterisk
Mathematical equations
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
40. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
2000
X
KEEP INDEX
LENGTH
41. The query retrieves more than 5 to 15 percent of the rows
V$
The indexed column is part of an expression. In this case - consider creating a function-based index instead
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Twice
42. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Combine
Actual column
Logical unit of work
43. It is considered good form to put all SQL commands in...
All caps
MINUS
SYSDATE
Mathematical equations
44. A transaction is a...
Columns
LIKE
Parent table
Logical unit of work
45. The time zone displacement value indicates the time difference from _______.
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
UTC
DICT_COLUMNS
LIKE
46. 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
47. What are the main components of a ROWID?
2000
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.
Twice
X
48. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Export Data
+
Another null
SYSDATE
49. Write the syntax to rename index just_two_more_weeks_i to finally_i
BETWEEN
USER_ - ALL_ - DBA_ - and V$
ANY
RENAME just_two_more_weeks TO finally_i
50. 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