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. Dynamic views begin with a ___________.
V$
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
**** 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
Results
2. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
All
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
X
Actual column
3. To equijoin a table with another table involves matching the...
Common column value
UNION operator
X
Twice
4. The ___________ operator tests whether a matching row cannot be found.
X
SELECT DISTINCT menu FROM restaurant
Location of the file
DD-MON-YY
5. To join four tables - you must have at least _____ join conditions.
Crow's foot
KEEP INDEX
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Three
6. Write a statement that drops the index need_to_pass_i
VALUES clause of an INSERT statement
Rounded edges
4
DROP INDEX need_to_pass_i
7. Explain in detail the impact of INDEXES and how they are used by Oracle.
Running a script file
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 returns the number of records returned by a query.
UNION operator
8. What is the maximum value for a column defined as NUMBER(4 -2)?
**** 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
ADD
99.99
Leading-edge
9. How many characters can you have using the VARCHAR data type?
4000
Mathematical equations
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Black
10. Which format mask displays December 31st - 1999?
Month ddth - yyyy
Black
SET clause of an UPDATE statement
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
11. What are the main components of a ROWID?
STORAGE
FALSE
12:00:00 A.M
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.
12. What is the first column of a composite index called?
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.
Leading-edge
RIGHT LEFT JOIN
Location of the file
13. Users can only see changes made to a database once they have been...
Committed
Common column value
User-defined reports
BETWEEN
14. Write a solution that adds 20 minutes to a given date.
X
Results
SELECT SYSDATE+1/96 - FROM dual
MINUS
15. The purpose of the HAVING clause is to eliminate___________.
Any
ANSI
Groups
User-defined reports
16. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
COMMIT
Equijoin and correlated subquery
FALSE
Orphan
17. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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.
Data
Any
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
18. The _____________ clause determines how rows are grouped.
ADD_MONTHS function
Asterisk
Black
GROUP BY
19. The _______ operator determines common rows.
INNER JOIN
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
A correct statement
INTERSECT
20. The _______ function adds values together for a group of rows.
All
SUM
Any
MINUS
21. Checks whether any value in the list makes the condition true.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Actual column
Location of the file
Any
22. UNION ALL does not sort - therefore it is less time consuming to use than the...
+
Month ddth - yyyy
ADD
UNION operator
23. When column names on the tables are different - you use the ______ condition.
FALSE
Inconsistencies
ON
Data
24. What do views do that makes them so useful for security?
Hide data
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
Fractional seconds
ON
25. Explain what is found in the All Objects report folder in SQL Developer
Non-matching rows
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Black
Month ddth - yyyy
26. Checks whether any value in the list makes the condition true.
STORAGE
Any
MODIFY
DESC dict;
27. 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
28. The same function can be used ______ in a SELECT statement.
Twice
Command returns the number of records returned by a query.
Asterisk
ROLLBACK
29. The term ____________ ___________ is used to express a join that satisfies the join condition.
Crow's foot
INNER JOIN
Details
ANY
30. Which operator is most commonly used?
UNION
Same
Black
Primary key/foreign key
31. The __________ operator is inclusive of the two values specified.
Committed
Twice
Multiple rows
BETWEEN
32. 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.
Retrieve
VALUES
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.
SELECT DISTINCT menu FROM restaurant
33. What does the following function return? SELECT LENGTH(NULL) - FROM dual
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.
Null
Optional
Correlated
34. 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.
Extra spaces
Asterisk
RUN SCRIPT
Has not changed the name
35. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
4000
Combine
RIGHT LEFT JOIN
DICT_COLUMNS
36. 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.
RIGHT LEFT JOIN
ON
Time zone
Scale
37. How many characters can be stored in the CHAR column/field?
2000
Retrieve
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.
LENGTH
38. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Three
ADD_MONTHS function
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.
Scale
39. Oracle uses the outer join operator to indicate that nulls are shown for...
Multiple rows
Non-matching rows
Precision
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
40. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Self-joins
Scalar
STORAGE
IN ANY ALL SOME
41. What is the main difference between the NOT EXISTS and the NOT IN operators?
Orphan
The way NULL values are treated
ADD
Time zone
42. Joins involving multiple columns must always follow the ____________ relationship path.
INNER JOIN
4
Primary key/foreign key
UNION operator
43. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
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.
When the table is small (unless your business rules require you too)
Static or dynamic
Both MIN and MAX
44. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Rounded edges
4
All caps
X
45. The RTRIM function is useful for eliminating ________ in a string.
Semicolon or forward slash
Extra spaces
The indexed column is part of an expression. In this case - consider creating a function-based index instead
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
46. 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.
+
ADD_MONTHS function
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
47. Explain how Substitution Variables are used when writing scripts.
Same
Crow's foot
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.
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
48. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
@ or START
Columns
49. FEEDBACK
Command returns the number of records returned by a query.
SELECT SYSDATE+1/96 - FROM dual
Equijoin
Columns
50. Which one of the following string functions tells you how many characters are in a string?
Both MIN and MAX
**** 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
TO_CHAR function
LENGTH