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 steps performed by a correlated subquery.
Same
Surrogate
COMMIT
**** 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
2. What is the most common DATE format found in SQL?
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
DD-MON-YY
Any
2000
3. List 6 Table-Related Menu Choices
X
SYSDATE
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Crow's foot
4. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
Precision
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Primary key/foreign key
5. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Month ddth - yyyy
MODIFY
DICT_COLUMNS
Running a script file
6. Write the syntax to rename index just_two_more_weeks_i to finally_i
UNION
RENAME just_two_more_weeks TO finally_i
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Multiple rows
7. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
GROUP BY
Black
Combine
8. In SQL Developer field names and table names are shown in the color _______.
Null
FALSE
Hide data
Black
9. NUMBER functions can be...
Nested
All caps
Testing functions
Default is 14; when you use the default - you repeat the heading every 14 rows.
10. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Details
RUN SCRIPT
VALUES clause of an INSERT statement
LENGTH
11. The COUNT function uses the __________ wildcard.
NATURAL JOIN
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.
Asterisk
Null
12. SELECT LIST of a subquery in an INSERT statement
Same
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.
SET clause of an UPDATE statement
Retrieve
13. The COUNT function is useful for determining whether a table has...
Data
FALSE
ANY
Any
14. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
All caps
Primary key/foreign key
2000
15. What does SQL stand for?
Scale
The way NULL values are treated
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
Structured Query Language
16. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
Common column value
Data
Equijoin and correlated subquery
17. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
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
ADD
ROLLBACK
18. Returns rows if the condition is true for all the values in the list
All
INNER JOIN
Columns
ADD_MONTHS function
19. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
TO_CHAR function
User-defined reports
IN ANY ALL SOME
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.
20. 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
21. The time zone displacement value indicates the time difference from _______.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
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.
2000
UTC
22. Explain the steps needed to run a script in SQL Developer
999999.9999
Optional
UNION
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. What is the name of the key automatically generated from a sequence?
A correct statement
Surrogate key
Has not changed the name
4
24. A transaction is a...
Self-joins
Multiple rows
X
Logical unit of work
25. The term ____________ ___________ is used to express a join that satisfies the join condition.
Combine
Black
Null
INNER JOIN
26. Explain what is found in the All Objects report folder in SQL Developer
INNER JOIN
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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.
All
27. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Any
Correlated
When the table is small (unless your business rules require you too)
KEEP INDEX
28. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Results
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.
999999.9999
X
29. To join four tables - you must have at least _____ join conditions.
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
Three
GROUP BY
User-defined reports
30. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Common column value
Fractional seconds
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
@ or START
31. The DUAL table can be used for...
4000
Testing functions
Non-matching rows
Time zone
32. Subqueries can return...
Recursive
Multiple rows
TO_CHAR function
The way NULL values are treated
33. List the reasons that a subquery could not be unnested.
Surrogate
When the table is small (unless your business rules require you too)
X
Fractional seconds
34. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Fractional seconds
ADD_MONTHS function
Null
B-Tree Index
35. A join across three tables can be expressed with the ________ join syntax.
COMMIT
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
ANSI
Equijoin
36. SQL*Plus is used more than SQL Developer when you need to...
Equijoin
99.99
Run scripts
Groups
37. Converting a text literal to DATE format requires the use of the...
COMMIT
TO_CHAR function
SET clause of an UPDATE statement
BETWEEN
38. What is Oracle's most popular index storage structure?
B-Tree Index
LIKE
12:00:00 A.M
V$
39. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Same
VALUES clause of an INSERT statement
Rounded edges
Equijoin and identical column names
40. Which operator is most commonly used?
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
Location of the file
SET clause of an UPDATE statement
UNION
41. You use the _________ keyword to add columns or constraints to a table.
ADD
Command returns the number of records returned by a query.
X
INTERSECT
42. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
DROP INDEX need_to_pass_i
4
12:00:00 A.M
43. 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
Recursive
SUM
GROUP BY
44. 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.
TO_CHAR function
Time zone
VALUES
Semicolon or forward slash
45. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Scalar
Results
A correct statement
Export Data
46. The ______ operator compares a list of values for equivalency
RENAME just_two_more_weeks TO finally_i
ANY
Script
ON
47. What is the data type you can use if you need an unlimited number of textual characters?
Crow's foot
CLOB
TO_CHAR function
X
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. Explicit data type conversion is preferable to Oracle's...
B-Tree Index
Implicit conversion
When the table is small (unless your business rules require you too)
Groups
50. How many characters can you have using the VARCHAR data type?
4
Business problems
Running a script file
4000