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. Explain how the SPOOL command is used and what program it can be used in.
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
**** 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
2000
Scale
2. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
RUN SCRIPT
Extra spaces
KEEP INDEX
3. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
Inconsistencies
NATURAL JOIN
Committed
4. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
Another null
FALSE
+
5. Subqueries can return...
Multiple rows
All
ADD
DICT_COLUMNS
6. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Command returns the number of records returned by a query.
The way NULL values are treated
Any
Equijoin and correlated subquery
7. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
COMMIT
Location of the file
Semicolon or forward slash
Common column value
8. NUMBER functions can be...
X
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Nested
@ or START
9. What is the first column of a composite index called?
Hide data
Leading-edge
Correlated
Twice
10. The ___________ operator tests whether a matching row cannot be found.
Fractional seconds
Business problems
Static or dynamic
X
11. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
V$
Twice
Rounded edges
12. Self-joins are useful for performing comparisons and checking for ___________ in data.
Columns
Static or dynamic
@ or START
Inconsistencies
13. How many characters can you have using the VARCHAR data type?
999999.9999
Recursive
4000
Precision
14. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
4
SET clause of an UPDATE statement
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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
15. Which format mask displays December 31st - 1999?
Fractional seconds
Month ddth - yyyy
DECODE
When the table is small (unless your business rules require you too)
16. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
SUM
ADD
V$
17. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
**** 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
Extra spaces
Month ddth - yyyy
X
18. Another name for a data dictionary view is __________________ or _________________.
Re-create
Static or dynamic
CLOB
Both MIN and MAX
19. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Rounded edges
4
Another null
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
20. Users can only see changes made to a database once they have been...
Committed
SUM
KEEP INDEX
Equijoin and identical column names
21. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
Asterisk
Correlated
GROUP BY
22. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
Groups
NATURAL JOIN
Scalar
23. What is the tab in SQL Developer where data dictionary view information can be found?
SELECT DISTINCT menu FROM restaurant
Details
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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.
24. The key that most database designers prefer and is chosen by the system is the _____________ key.
User-defined reports
Scale
Surrogate
MINUS
25. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Retrieve
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
SYSDATE
26. 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?
Committed
DICTIONARY
RUN SCRIPT
ADD
27. The focus of the logical data model is _____________
KEEP INDEX
Common column value
X
Business problems
28. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
Running a script file
Logical unit of work
Surrogate
29. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Extra spaces
BETWEEN
KEEP INDEX
30. Explain what a static data dictionary view is and how it is used
UNION
DD-MON-YY
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.
31. The _____________ clause determines how rows are grouped.
Inconsistencies
2000
NATURAL JOIN
GROUP BY
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.
VALUES
X
Rounded edges
LENGTH
33. The _______ operator determines common rows.
SELECT DISTINCT menu FROM restaurant
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
SUM
34. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Inconsistencies
FALSE
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.
Non-matching rows
35. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Structured Query Language
Combine
STORAGE
Optional
36. SQL*Plus is used more than SQL Developer when you need to...
VALUES
ANSI
Run scripts
Any
37. _________ rows are not allowed in the relational model.
99.99
Orphan
Optional
The indexed column is part of an expression. In this case - consider creating a function-based index instead
38. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Logical unit of work
INNER JOIN
DICT_COLUMNS
Run scripts
39. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
RENAME just_two_more_weeks TO finally_i
All caps
Correlated
40. The DUAL table can be used for...
Groups
Data
Testing functions
The way NULL values are treated
41. A join across three tables can be expressed with the ________ join syntax.
ANSI
Running a script file
NATURAL JOIN
MODIFY
42. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Mathematical equations
Scale
RIGHT LEFT JOIN
Testing functions
43. Joins involving multiple columns must always follow the ____________ relationship path.
DECODE
Primary key/foreign key
VALUES clause of an INSERT statement
ON
44. What does SQL stand for?
12:00:00 A.M
BETWEEN
X
Structured Query Language
45. SELECT * FROM instructor ORDER BY phone
Both MIN and MAX
Script
A correct statement
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.
46. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
CLOB
VALUES
Equijoin
47. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Retrieve
Leading-edge
+
Correlated
48. What does the following function return? SELECT LENGTH(NULL) - FROM dual
12:00:00 A.M
Null
BETWEEN
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
49. What is the name of the key automatically generated from a sequence?
Inconsistencies
Surrogate key
ANSI
4000
50. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
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
MODIFY
999999.9999
Hide data