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. To restart a sequence at a lower number - you can drop and ________ the sequence.
UNION
Re-create
Has not changed the name
**** 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
2. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Re-create
Any
MINUS
Three
3. Explicit data type conversion is preferable to Oracle's...
Parent table
Columns
Any
Implicit conversion
4. Returns rows if the condition is true for all the values in the list
All
Columns
A correct statement
99.99
5. 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.
Nested
The indexed column is part of an expression. In this case - consider creating a function-based index instead
IN ANY ALL SOME
FALSE
6. What is the keyboard shortcut for the ROLLBACK command?
F12
Non-matching rows
UNION operator
Any
7. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
+
Three
Rounded edges
8. To join four tables - you must have at least _____ join conditions.
DICTIONARY
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
Command returns the number of records returned by a query.
9. The same function can be used ______ in a SELECT statement.
LENGTH
Command returns the number of records returned by a query.
Twice
UNION
10. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
Export Data
User-defined reports
Semicolon or forward slash
11. 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
12. The _______ function lets you perform if-then-else functionality with the SQL language.
Asterisk
DECODE
USER_ - ALL_ - DBA_ - and V$
Any
13. You use the _________ keyword to add columns or constraints to a table.
Surrogate key
All
BETWEEN
ADD
14. The purpose of the HAVING clause is to eliminate___________.
Non-matching rows
Groups
NATURAL JOIN
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
15. Write a statement that drops the index need_to_pass_i
All
Scale
DROP INDEX need_to_pass_i
SELECT SYSDATE+1/96 - FROM dual
16. What is the most common DATE format found in SQL?
4000
Rounded edges
Parent table
DD-MON-YY
17. In SQL Developer field names and table names are shown in the color _______.
Month ddth - yyyy
Black
Any
2000
18. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Time zone
Rounded edges
Correlated
4000
19. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
COMMIT
Logical unit of work
FALSE
20. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
Inconsistencies
RIGHT LEFT JOIN
2000
21. 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.
ADD_MONTHS function
Equijoin
UTC
22. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
FALSE
RIGHT LEFT JOIN
Fractional seconds
23. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
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
Has not changed the name
Equijoin
24. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
X
BETWEEN
VALUES
INNER JOIN
25. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
BETWEEN
RENAME just_two_more_weeks TO finally_i
Optional
26. The _______ function adds values together for a group of rows.
Script
999999.9999
ANSI
SUM
27. 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
UNION operator
SUM
User-defined reports
28. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Crow's foot
FALSE
ADD
User-defined reports
29. Which format mask displays December 31st - 1999?
Time zone
Month ddth - yyyy
KEEP INDEX
Same
30. The DUAL table can be used for...
Testing functions
SYSDATE
Equijoin
Static or dynamic
31. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
ANY
+
DROP INDEX need_to_pass_i
FALSE
32. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
VALUES clause of an INSERT statement
Primary key/foreign key
B-Tree Index
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
33. What is the maximum value for a column defined as NUMBER(4 -2)?
Combine
99.99
Re-create
ALL_OBJECTS
34. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Implicit conversion
Scale
FALSE
V$
35. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
VALUES
Three
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.
36. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Mathematical equations
Orphan
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.
Equijoin and correlated subquery
37. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
When the table is small (unless your business rules require you too)
Running a script file
RUN SCRIPT
Testing functions
38. The __________ operator is inclusive of the two values specified.
Export Data
Primary key/foreign key
BETWEEN
GROUP BY
39. LINESIZE
Implicit conversion
A correct statement
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
RUN SCRIPT
40. The ______ operator compares a list of values for equivalency
Equijoin and identical column names
VALUES
Script
ANY
41. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Retrieve
F12
Correlated
Primary key/foreign key
42. How many characters can you have using the VARCHAR data type?
4000
Mathematical equations
Implicit conversion
Command returns the number of records returned by a query.
43. The key that most database designers prefer and is chosen by the system is the _____________ key.
STORAGE
RENAME just_two_more_weeks TO finally_i
ROLLBACK
Surrogate
44. The term ____________ ___________ is used to express a join that satisfies the join condition.
SUM
F12
VALUES
INNER JOIN
45. 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.
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
ADD
VALUES
Re-create
46. A transaction is a...
Logical unit of work
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.
INTERSECT
DICTIONARY
47. 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
48. Match each of the SQL commands on the left with a verb from the list.
BETWEEN
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Three
12:00:00 A.M
49. _________ rows are not allowed in the relational model.
DICT_COLUMNS
SUM
Has not changed the name
Orphan
50. Write a solution that adds 20 minutes to a given date.
Running a script file
Asterisk
Actual column
SELECT SYSDATE+1/96 - FROM dual