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. What is the most common DATE format found in SQL?
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Details
DD-MON-YY
The way NULL values are treated
2. Joins involving multiple columns must always follow the ____________ relationship path.
+
Primary key/foreign key
999999.9999
Equijoin
3. The COUNT function uses the __________ wildcard.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Optional
Same
Asterisk
4. How many characters can you have using the VARCHAR data type?
Any
Has not changed the name
4000
Columns
5. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
LIKE
+
Precision
Groups
6. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
UNION
UNION operator
12:00:00 A.M
7. SELECT * FROM instructor ORDER BY phone
X
A correct statement
Inconsistencies
99.99
8. Queries that are found in parentheses are done first - just as in the order of operations when doing...
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.
SYSDATE
Mathematical equations
ON
9. To equijoin a table with another table involves matching the...
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Common column value
CLOB
Black
10. SQL*Plus is used more than SQL Developer when you need to...
B-Tree Index
Correlated
UNION operator
Run scripts
11. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Combine
4000
DICTIONARY
12. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
999999.9999
DROP INDEX need_to_pass_i
Any
Correlated
13. The ____________ command makes changes permanent.
COMMIT
Null
Extra spaces
SUM
14. Users can only see changes made to a database once they have been...
Results
Committed
MINUS
FALSE
15. You can use the ________________ to subtract months from a given date.
VALUES
A correct statement
Static or dynamic
ADD_MONTHS function
16. It is considered good form to put all SQL commands in...
All caps
ROLLBACK
+
Has not changed the name
17. The ___________ operator tests whether a matching row cannot be found.
X
All
Logical unit of work
Rounded edges
18. _________________ relationships are always optional relationships.
Null
Precision
Export Data
Recursive
19. What is the name of the key automatically generated from a sequence?
Surrogate key
Static or dynamic
BETWEEN
Precision
20. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Business problems
Actual column
21. The _______ operator determines common rows.
Rounded edges
Fractional seconds
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
INTERSECT
22. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
DICTIONARY
**** 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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
STORAGE
23. List the different types of data dictionary views.
X
Parent table
USER_ - ALL_ - DBA_ - and V$
+
24. The query retrieves more than 5 to 15 percent of the rows
GROUP BY
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Business problems
SUM
25. What is Oracle's most popular index storage structure?
Orphan
B-Tree Index
Time zone
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.
26. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
STORAGE
Twice
99.99
27. 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
Asterisk
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.
28. When is it not a good idea to use an index?
The indexed column is part of an expression. In this case - consider creating a function-based index instead
DICT_COLUMNS
RUN SCRIPT
When the table is small (unless your business rules require you too)
29. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Crow's foot
Scale
Equijoin and identical column names
DICT_COLUMNS
30. The time zone displacement value indicates the time difference from _______.
Retrieve
Self-joins
NATURAL JOIN
UTC
31. The ALTER SESSION statement can change the session's...
Three
All
@ or START
Time zone
32. Which format mask displays December 31st - 1999?
Month ddth - yyyy
2000
X
ALL_OBJECTS
33. What does SQL stand for?
Structured Query Language
BETWEEN
Same
STORAGE
34. 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.
VALUES
SUM
DD-MON-YY
Surrogate
35. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
SUM
User-defined reports
SELECT SYSDATE+1/96 - FROM dual
Same
36. What is the first column of a composite index called?
Multiple rows
Script
Leading-edge
Black
37. 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
38. A calculation with a null always yields...
Another null
DICT_COLUMNS
Asterisk
Mathematical equations
39. When you run a script in SQL*Plus you must give the...
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Location of the file
Inconsistencies
LENGTH
40. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
Mathematical equations
V$
Static or dynamic
41. List 6 Table-Related Menu Choices
STORAGE
Actual column
Static or dynamic
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
42. Checks whether any value in the list makes the condition true.
User-defined reports
Any
Default is 14; when you use the default - you repeat the heading every 14 rows.
Time zone
43. Explain in detail the impact of INDEXES and how they are used by Oracle.
All
Twice
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
B-Tree Index
44. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
INNER JOIN
STORAGE
Command returns the number of records returned by a query.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
45. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
2000
Time zone
Equijoin and correlated subquery
Both MIN and MAX
46. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Testing functions
TO_CHAR function
4
ALL_OBJECTS
47. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Equijoin and identical column names
+
DECODE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
48. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Both MIN and MAX
ROLLBACK
User-defined reports
SELECT SYSDATE+1/96 - FROM dual
49. The focus of the logical data model is _____________
999999.9999
Business problems
Combine
TO_CHAR function
50. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
Month ddth - yyyy
BETWEEN
SUM