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. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Surrogate
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
All
Both MIN and MAX
2. Dynamic views begin with a ___________.
VALUES clause of an INSERT statement
Logical unit of work
V$
SUM
3. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Data
Scalar
Correlated
4. The ROWID pseudocolumn is not an ________- but it acts like one.
Another null
Actual column
ADD
All
5. What is the tab in SQL Developer where data dictionary view information can be found?
Implicit conversion
DICT_COLUMNS
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.
Details
6. List the steps performed by a correlated subquery.
**** 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
BETWEEN
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
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.
7. Another name for a data dictionary view is __________________ or _________________.
Data
SELECT DISTINCT menu FROM restaurant
Static or dynamic
ANSI
8. The focus of the logical data model is _____________
Business problems
2000
KEEP INDEX
Static or dynamic
9. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
DICT_COLUMNS
Command returns the number of records returned by a query.
Nested
10. 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.
Equijoin
VALUES
Export Data
Extra spaces
11. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
Orphan
Committed
Implicit conversion
12. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
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
4000
Semicolon or forward slash
13. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
Mathematical equations
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.
Parent table
14. What are the main components of a ROWID?
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.
RIGHT LEFT JOIN
Primary key/foreign key
Testing functions
15. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
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
Rounded edges
UNION operator
16. Queries that are found in parentheses are done first - just as in the order of operations when doing...
X
Export Data
Mathematical equations
STORAGE
17. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Twice
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
UNION operator
IN ANY ALL SOME
18. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
TO_CHAR function
Export Data
+
Logical unit of work
19. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Running a script file
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Scale
B-Tree Index
20. What is the first column of a composite index called?
Business problems
Leading-edge
STORAGE
Another null
21. The _______ operator determines common rows.
INTERSECT
UTC
Both MIN and MAX
ADD
22. Self-joins are useful for performing comparisons and checking for ___________ in data.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
STORAGE
Inconsistencies
Data
23. List the different types of data dictionary views.
Combine
USER_ - ALL_ - DBA_ - and V$
Any
DD-MON-YY
24. Checks whether any value in the list makes the condition true.
Any
Retrieve
999999.9999
+
25. When you run a script in SQL*Plus you must give the...
Location of the file
BETWEEN
Inconsistencies
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
26. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
The way NULL values are treated
SELECT DISTINCT menu FROM restaurant
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
27. Explicit data type conversion is preferable to Oracle's...
All caps
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Implicit conversion
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
28. 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.
Three
Twice
X
29. _________ rows are not allowed in the relational model.
Semicolon or forward slash
MINUS
4
Orphan
30. The DUAL table can be used for...
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
Inconsistencies
Testing functions
999999.9999
31. 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.
Has not changed the name
Time zone
Business problems
Another null
32. __________________ inserts the current date and time.
SELECT SYSDATE+1/96 - FROM dual
SYSDATE
When the table is small (unless your business rules require you too)
999999.9999
33. Users can only see changes made to a database once they have been...
All caps
Asterisk
Committed
Recursive
34. Comparison operators can compare multiple _________________.
Data
KEEP INDEX
B-Tree Index
Columns
35. The COUNT function is useful for determining whether a table has...
+
Hide data
Data
ON
36. 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?
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
Running a script file
TO_CHAR function
DICTIONARY
37. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
DD-MON-YY
Multiple rows
IN ANY ALL SOME
38. SELECT * FROM instructor ORDER BY phone
A correct statement
Self-joins
Semicolon or forward slash
Running a script file
39. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
UNION
B-Tree Index
Any
40. The ALTER SESSION statement can change the session's...
Recursive
Semicolon or forward slash
Multiple rows
Time zone
41. Returns rows if the condition is true for all the values in the list
Script
Twice
All
Non-matching rows
42. Explain how Substitution Variables are used when writing scripts.
INNER 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.
Optional
Any
43. It is considered good form to put all SQL commands in...
All caps
Results
Black
Any
44. The using clause of the ANSI join syntax always assumes an...
The way NULL values are treated
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.
Equijoin and identical column names
B-Tree Index
45. What is the main difference between the NOT EXISTS and the NOT IN operators?
VALUES clause of an INSERT statement
The way NULL values are treated
BETWEEN
The indexed column is part of an expression. In this case - consider creating a function-based index instead
46. The purpose of the HAVING clause is to eliminate___________.
USER_ - ALL_ - DBA_ - and V$
Testing functions
Command returns the number of records returned by a query.
Groups
47. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
KEEP INDEX
Precision
Combine
Any
48. 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
49. _________________ relationships are always optional relationships.
SELECT DISTINCT menu FROM restaurant
Recursive
Business problems
4
50. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Same
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
UNION