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 4 aggregate functions
Inconsistencies
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Has not changed the name
DICT_COLUMNS
2. 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
3. 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_OBJECTS
RIGHT LEFT JOIN
Static or dynamic
Logical unit of work
4. FEEDBACK
Groups
ON
Command returns the number of records returned by a query.
Precision
5. The _______ operator determines common rows.
INTERSECT
IN ANY ALL SOME
Script
FALSE
6. List the steps performed by a correlated subquery.
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
**** 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
Month ddth - yyyy
Retrieve
7. A join across three tables can be expressed with the ________ join syntax.
Parent table
2000
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ANSI
8. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
Black
Another null
Leading-edge
9. To equijoin a table with another table involves matching the...
SYSDATE
UNION operator
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
Common column value
10. What do views do that makes them so useful for security?
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
99.99
Hide data
Running a script file
11. The COUNT function uses the __________ wildcard.
Asterisk
Null
Committed
Orphan
12. The term ____________ ___________ is used to express a join that satisfies the join condition.
Structured Query Language
When the table is small (unless your business rules require you too)
INNER JOIN
X
13. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ADD
ROLLBACK
V$
Non-matching rows
14. The ____________ command makes changes permanent.
COMMIT
B-Tree Index
Static or dynamic
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
15. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
@ or START
All caps
Logical unit of work
Export Data
16. The TRUNC function on a date without a format model truncates the timestamp to...
Data
Parent table
12:00:00 A.M
ANSI
17. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
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.
RUN SCRIPT
Retrieve
Hide data
18. Converting a text literal to DATE format requires the use of the...
Business problems
Null
TO_CHAR function
RIGHT LEFT JOIN
19. What is the maximum value for a column defined as NUMBER(4 -2)?
Any
Default is 14; when you use the default - you repeat the heading every 14 rows.
Primary key/foreign key
99.99
20. Self-joins are useful for performing comparisons and checking for ___________ in data.
When the table is small (unless your business rules require you too)
Inconsistencies
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Testing functions
21. Comparison operators can compare multiple _________________.
VALUES clause of an INSERT statement
Surrogate
Columns
BETWEEN
22. A transaction is a...
Multiple rows
Logical unit of work
UTC
MINUS
23. The __________ operator is inclusive of the two values specified.
BETWEEN
FALSE
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
Null
24. What is the name of the key automatically generated from a sequence?
CLOB
**** 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
Surrogate key
RUN SCRIPT
25. The COUNT function is useful for determining whether a table has...
The way NULL values are treated
Data
Retrieve
Hide data
26. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
Time zone
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.
MODIFY
27. Which operator is most commonly used?
COMMIT
UNION
Leading-edge
DICT_COLUMNS
28. Explain how Substitution Variables are used when writing scripts.
GROUP BY
ON
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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.
29. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
SELECT SYSDATE+1/96 - FROM dual
Optional
B-Tree Index
Equijoin
30. Explicit data type conversion is preferable to Oracle's...
ANSI
Implicit conversion
99.99
Primary key/foreign key
31. To restart a sequence at a lower number - you can drop and ________ the sequence.
Equijoin and correlated subquery
Twice
Re-create
Columns
32. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
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.
MINUS
RUN SCRIPT
33. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Inconsistencies
VALUES clause of an INSERT statement
Null
Equijoin
34. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
SELECT DISTINCT menu FROM restaurant
IN ANY ALL SOME
Correlated
Static or dynamic
35. Dynamic views begin with a ___________.
COMMIT
V$
Null
Running a script file
36. What are the main components of a ROWID?
UNION
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.
A correct statement
Any
37. The _______ function adds values together for a group of rows.
IN ANY ALL SOME
Has not changed the name
SUM
The way NULL values are treated
38. The _______ function lets you perform if-then-else functionality with the SQL language.
X
**** 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
Business problems
DECODE
39. What is the tab in SQL Developer where data dictionary view information can be found?
The way NULL values are treated
KEEP INDEX
Details
Combine
40. The time zone displacement value indicates the time difference from _______.
BETWEEN
Default is 14; when you use the default - you repeat the heading every 14 rows.
UTC
UNION operator
41. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
ANSI
Optional
Script
42. It is considered good form to put all SQL commands in...
ADD
Correlated
All caps
The way NULL values are treated
43. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
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
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.
Nested
4
44. The using clause of the ANSI join syntax always assumes an...
Equijoin and identical column names
Testing functions
ANY
2000
45. Write a statement that drops the index need_to_pass_i
Command returns the number of records returned by a query.
DROP INDEX need_to_pass_i
SELECT DISTINCT menu FROM restaurant
DESC dict;
46. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
CLOB
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
IN ANY ALL SOME
Time zone
47. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ADD
The indexed column is part of an expression. In this case - consider creating a function-based index instead
48. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
TO_CHAR function
999999.9999
Same
KEEP INDEX
49. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
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.
Equijoin and correlated subquery
Precision
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
50. A _________ subquery returns a single column with a single row
Scalar
Testing functions
Three
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.