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. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Groups
ANSI
Correlated
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
2. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
Any
B-Tree Index
**** 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
3. How many characters can be stored in the CHAR column/field?
2000
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
UTC
Scalar
4. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
CLOB
DROP INDEX need_to_pass_i
V$
5. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
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
Time zone
X
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
6. List the reasons that a subquery could not be unnested.
X
USER_ - ALL_ - DBA_ - and V$
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Nested
7. 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
8. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
INNER JOIN
Equijoin and correlated subquery
GROUP BY
USER_ - ALL_ - DBA_ - and V$
9. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
B-Tree Index
Equijoin and identical column names
Hide data
10. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
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
X
Nested
The indexed column is part of an expression. In this case - consider creating a function-based index instead
11. What is the name of the key automatically generated from a sequence?
USER_ - ALL_ - DBA_ - and V$
Precision
Surrogate key
Running a script file
12. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Recursive
IN ANY ALL SOME
ON
13. You can pass parameters from the operating system when ___________ in SQl*Plus
DECODE
Re-create
Equijoin
Running a script file
14. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
CLOB
UTC
Committed
15. Explicit data type conversion is preferable to Oracle's...
Logical unit of work
COMMIT
Self-joins
Implicit conversion
16. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
IN ANY ALL SOME
Orphan
17. The _______ function adds values together for a group of rows.
DICTIONARY
Running a script file
V$
SUM
18. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
X
Business problems
19. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
X
Any
Surrogate key
20. _________ rows are not allowed in the relational model.
Optional
Hide data
ANSI
Orphan
21. Which one of the following string functions tells you how many characters are in a string?
LENGTH
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
IN ANY ALL SOME
Rounded edges
22. The _____________ clause determines how rows are grouped.
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
Extra spaces
Primary key/foreign key
GROUP BY
23. 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
**** 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
All
Details
24. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
IN ANY ALL SOME
V$
Surrogate key
25. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
INNER JOIN
Month ddth - yyyy
RUN SCRIPT
Any
26. The TRUNC function on a date without a format model truncates the timestamp to...
Run scripts
VALUES
+
12:00:00 A.M
27. The ROWID pseudocolumn is not an ________- but it acts like one.
Black
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
Actual column
Groups
28. The ___________ operator tests whether a matching row cannot be found.
LENGTH
NATURAL JOIN
X
99.99
29. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
Columns
NATURAL JOIN
Scalar
30. A transaction is a...
INTERSECT
Logical unit of work
COMMIT
Scalar
31. Subqueries can return...
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.
Nested
Multiple rows
X
32. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
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.
Nested
Semicolon or forward slash
Time zone
33. What is Oracle's most popular index storage structure?
DD-MON-YY
All
RENAME just_two_more_weeks TO finally_i
B-Tree Index
34. The __________ operator is inclusive of the two values specified.
BETWEEN
Crow's foot
LIKE
DESC dict;
35. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a 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
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
DICT_COLUMNS
Groups
36. A join across three tables can be expressed with the ________ join syntax.
ANSI
INTERSECT
ROLLBACK
Details
37. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
ALL_OBJECTS
SUM
When the table is small (unless your business rules require you too)
38. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
X
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
The way NULL values are treated
39. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
X
ON
@ or START
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
40. The key that most database designers prefer and is chosen by the system is the _____________ key.
RUN SCRIPT
Has not changed the name
X
Surrogate
41. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
ADD
The way NULL values are treated
When the table is small (unless your business rules require you too)
42. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
DD-MON-YY
SUM
Script
43. What does SQL stand for?
Non-matching rows
Any
Structured Query Language
ADD
44. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
DROP INDEX need_to_pass_i
ALL_OBJECTS
SYSDATE
Same
45. SELECT * FROM instructor ORDER BY phone
A correct statement
ALL_OBJECTS
ADD_MONTHS function
Hide data
46. 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
INNER JOIN
Columns
Recursive
47. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Crow's foot
Logical unit of work
BETWEEN
48. SELECT LIST of a subquery in an INSERT statement
Leading-edge
Correlated
SELECT SYSDATE+1/96 - FROM dual
SET clause of an UPDATE statement
49. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Has not changed the name
Fractional seconds
B-Tree Index
X
50. Users can only see changes made to a database once they have been...
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.
Actual column
Committed
Structured Query Language