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 using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
SUM
Self-joins
999999.9999
Same
2. 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.
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
DROP INDEX need_to_pass_i
RIGHT LEFT JOIN
Business problems
3. In SQL Developer field names and table names are shown in the color _______.
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.
Black
ANSI
Business problems
4. What is the most common DATE format found in SQL?
INNER JOIN
Hide data
VALUES
DD-MON-YY
5. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Black
NATURAL JOIN
Command returns the number of records returned by a query.
The way NULL values are treated
6. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
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
Optional
12:00:00 A.M
Common column value
7. Which format mask displays December 31st - 1999?
Month ddth - yyyy
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Combine
8. A join across three tables can be expressed with the ________ join syntax.
DESC dict;
Implicit conversion
Groups
ANSI
9. Oracle uses the outer join operator to indicate that nulls are shown for...
CLOB
Committed
Command returns the number of records returned by a query.
Non-matching rows
10. In a view you can give a column a different name than it has in the...
Parent table
DESC dict;
CLOB
Twice
11. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
DICTIONARY
Committed
RUN SCRIPT
Self-joins
12. The time zone displacement value indicates the time difference from _______.
Implicit conversion
F12
UTC
FALSE
13. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
+
BETWEEN
V$
SELECT SYSDATE+1/96 - FROM dual
14. What is the first column of a composite index called?
Running a script file
Scalar
Leading-edge
Hide data
15. List the different types of data dictionary views.
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.
USER_ - ALL_ - DBA_ - and V$
User-defined reports
Another null
16. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
MODIFY
DICTIONARY
999999.9999
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
17. The _______ function adds values together for a group of rows.
USER_ - ALL_ - DBA_ - and V$
Testing functions
Optional
SUM
18. ____________ are useful for analyzing and exploring the relationships within your data
SELECT SYSDATE+1/96 - FROM dual
Self-joins
Data
ADD_MONTHS function
19. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
ADD_MONTHS function
Rounded edges
4000
DESC dict;
20. 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.
ANY
VALUES clause of an INSERT statement
Has not changed the name
Data
21. To restart a sequence at a lower number - you can drop and ________ the sequence.
Testing functions
Re-create
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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
22. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
MODIFY
Equijoin
Recursive
23. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
Run scripts
UNION
Actual column
24. 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
Black
DD-MON-YY
RIGHT LEFT JOIN
25. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Precision
Fractional seconds
4000
Common column value
26. 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.
IN ANY ALL SOME
TO_CHAR function
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.
FALSE
27. Dynamic views begin with a ___________.
Committed
VALUES clause of an INSERT statement
UNION operator
V$
28. Comparison operators can compare multiple _________________.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
V$
Self-joins
Columns
29. Users can only see changes made to a database once they have been...
SYSDATE
Committed
INTERSECT
Correlated
30. Checks whether any value in the list makes the condition true.
Any
DECODE
Nested
Equijoin and correlated subquery
31. The __________ operator is inclusive of the two values specified.
The way NULL values are treated
VALUES
BETWEEN
**** 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
32. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
Time zone
**** 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
LIKE
33. The using clause of the ANSI join syntax always assumes an...
KEEP INDEX
12:00:00 A.M
Testing functions
Equijoin and identical column names
34. Which operator is most commonly used?
UNION
INTERSECT
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
Leading-edge
35. 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
36. 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
MODIFY
The way NULL values are treated
Committed
37. __________________ inserts the current date and time.
Equijoin and identical column names
SYSDATE
99.99
Hide data
38. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Orphan
BETWEEN
FALSE
The way NULL values are treated
39. List 4 aggregate functions
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
ROLLBACK
DICT_COLUMNS
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
40. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
Rounded edges
COMMIT
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
41. NUMBER functions can be...
ADD
Nested
STORAGE
When the table is small (unless your business rules require you too)
42. The ALTER SESSION statement can change the session's...
Time zone
ANY
Details
Scale
43. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
MODIFY
When the table is small (unless your business rules require you too)
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.
44. When column names on the tables are different - you use the ______ condition.
All
Location of the file
ON
RIGHT LEFT JOIN
45. _________________ relationships are always optional relationships.
Recursive
DROP INDEX need_to_pass_i
KEEP INDEX
A correct statement
46. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
V$
Scale
DICT_COLUMNS
UNION
47. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Rounded edges
INTERSECT
ADD
Mathematical equations
48. 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?
DICTIONARY
ALL_OBJECTS
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
SYSDATE
49. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Same
Equijoin and correlated subquery
Month ddth - yyyy
CLOB
50. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ALL_OBJECTS
Surrogate key
UTC