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. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
BETWEEN
IN ANY ALL SOME
Combine
Same
2. Subqueries can return...
Mathematical equations
Multiple rows
Semicolon or forward slash
ADD_MONTHS function
3. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
Scalar
All
BETWEEN
4. What is the first column of a composite index called?
Non-matching rows
Results
Inconsistencies
Leading-edge
5. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
SET clause of an UPDATE statement
Scale
All caps
6. To join four tables - you must have at least _____ join conditions.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Leading-edge
Three
999999.9999
7. A join across three tables can be expressed with the ________ join syntax.
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.
Common column value
ANSI
RIGHT LEFT JOIN
8. When column names on the tables are different - you use the ______ condition.
999999.9999
Has not changed the name
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.
ON
9. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
X
MINUS
ROLLBACK
All caps
10. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Static or dynamic
DECODE
Rounded edges
+
11. List the reasons that a subquery could not be unnested.
Twice
X
Logical unit of work
When the table is small (unless your business rules require you too)
12. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
LENGTH
ADD
ANY
DICT_COLUMNS
13. 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.
DICTIONARY
Has not changed the name
LENGTH
DICT_COLUMNS
14. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
SUM
Fractional seconds
Business problems
Any
15. In SQL Developer field names and table names are shown in the color _______.
Semicolon or forward slash
Testing functions
Scalar
Black
16. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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.
Optional
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. List the steps performed by a correlated subquery.
Extra spaces
Leading-edge
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
**** 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
18. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
FALSE
Results
ADD
INNER JOIN
19. What is the name of the key automatically generated from a sequence?
DD-MON-YY
Primary key/foreign key
When the table is small (unless your business rules require you too)
Surrogate key
20. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Self-joins
SYSDATE
ON
STORAGE
21. To restart a sequence at a lower number - you can drop and ________ the sequence.
Re-create
DICTIONARY
Precision
**** 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
22. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
All caps
NATURAL JOIN
Correlated
23. What are the main components of a ROWID?
Month ddth - yyyy
ON
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.
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.
24. Which format mask displays December 31st - 1999?
Month ddth - yyyy
UTC
NATURAL JOIN
Implicit conversion
25. In a view you can give a column a different name than it has in the...
Parent table
Extra spaces
Testing functions
Common column value
26. __________________ inserts the current date and time.
SYSDATE
Running a script file
Committed
Self-joins
27. What do views do that makes them so useful for security?
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Hide data
**** 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
DD-MON-YY
28. 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?
GROUP BY
DICTIONARY
User-defined reports
LIKE
29. Write a statement that drops the index need_to_pass_i
Any
LIKE
KEEP INDEX
DROP INDEX need_to_pass_i
30. When you run a script in SQL*Plus you must give the...
DD-MON-YY
Location of the file
DECODE
V$
31. Users can only see changes made to a database once they have been...
FALSE
RIGHT LEFT JOIN
Orphan
Committed
32. Self-joins are useful for performing comparisons and checking for ___________ in data.
Any
Inconsistencies
Hide data
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
33. To equijoin a table with another table involves matching the...
ROLLBACK
Non-matching rows
Common column value
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
34. Another name for a data dictionary view is __________________ or _________________.
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
A correct statement
Static or dynamic
ON
35. Explain in detail the impact of INDEXES and how they are used by Oracle.
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.
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
Location of the file
Script
36. Which operator is most commonly used?
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.
DROP INDEX need_to_pass_i
ROLLBACK
UNION
37. 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.
FALSE
2000
LIKE
ALL_OBJECTS
38. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
STORAGE
Re-create
4000
Export Data
39. 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
40. Checks whether any value in the list makes the condition true.
Any
DD-MON-YY
ROLLBACK
ADD_MONTHS function
41. The purpose of the HAVING clause is to eliminate___________.
Business problems
When the table is small (unless your business rules require you too)
User-defined reports
Groups
42. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
ON
Extra spaces
Any
43. You use the __________ keyword to change characteristics of a column.
MODIFY
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Optional
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.
44. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
F12
Correlated
Export Data
Equijoin
45. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Inconsistencies
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
CLOB
Script
46. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
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.
Script
X
47. FEEDBACK
Command returns the number of records returned by a query.
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
LENGTH
48. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
INNER JOIN
X
SYSDATE
RIGHT LEFT JOIN
49. What is the maximum value for a column defined as NUMBER(4 -2)?
All
Optional
99.99
**** 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
50. _________________ relationships are always optional relationships.
Recursive
Same
STORAGE
Columns