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. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
F12
STORAGE
ON
When the table is small (unless your business rules require you too)
2. The COUNT function uses the __________ wildcard.
Scalar
4000
DECODE
Asterisk
3. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
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
User-defined reports
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Multiple rows
4. The __________ operator is inclusive of the two values specified.
BETWEEN
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
Twice
DD-MON-YY
5. The _______ operator determines common rows.
DROP INDEX need_to_pass_i
Non-matching rows
INTERSECT
STORAGE
6. LINESIZE
Leading-edge
LIKE
Common column value
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
7. Write a statement for SQL*Plus that shows the dictionary.
Any
DESC dict;
Self-joins
When the table is small (unless your business rules require you too)
8. The focus of the logical data model is _____________
F12
Business problems
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.
Inconsistencies
9. What do views do that makes them so useful for security?
Parent table
Hide data
UTC
Testing functions
10. To equijoin a table with another table involves matching the...
Groups
Twice
DICT_COLUMNS
Common column value
11. You can use the ________________ to subtract months from a given date.
SET clause of an UPDATE statement
ADD_MONTHS function
4
Run scripts
12. How many characters can you have using the VARCHAR data type?
Crow's foot
4000
Non-matching rows
Equijoin
13. The ROWID pseudocolumn is not an ________- but it acts like one.
@ or START
Actual column
Inconsistencies
X
14. Subqueries can return...
+
All caps
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Multiple rows
15. To join four tables - you must have at least _____ join conditions.
Three
Run scripts
Another null
Default is 14; when you use the default - you repeat the heading every 14 rows.
16. The COUNT function is useful for determining whether a table has...
When the table is small (unless your business rules require you too)
Primary key/foreign key
Data
Script
17. Explain the steps needed to run a script 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.
Extra spaces
4000
18. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
Semicolon or forward slash
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.
DROP INDEX need_to_pass_i
19. Explain what a static data dictionary view is and how it is used
Any
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.
DICTIONARY
All caps
20. What is Oracle's most popular index storage structure?
Scale
FALSE
B-Tree Index
COMMIT
21. What is the data type you can use if you need an unlimited number of textual characters?
All
CLOB
FALSE
RENAME just_two_more_weeks TO finally_i
22. The _____________ clause determines how rows are grouped.
Parent table
Correlated
ALL_OBJECTS
GROUP BY
23. _________ rows are not allowed in the relational model.
Parent table
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
Month ddth - yyyy
Orphan
24. Dynamic views begin with a ___________.
V$
Script
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
12:00:00 A.M
25. Explain how the SPOOL command is used and what program it can be used in.
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.
VALUES clause of an INSERT statement
V$
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
26. You can pass parameters from the operating system when ___________ in SQl*Plus
Semicolon or forward slash
Scalar
Running a script file
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
27. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
Scalar
Results
Extra spaces
28. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Leading-edge
Both MIN and MAX
Combine
Inconsistencies
29. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Command returns the number of records returned by a query.
Scale
Both MIN and MAX
All caps
30. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
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
FALSE
12:00:00 A.M
31. The ____________ command makes changes permanent.
UNION operator
RIGHT LEFT JOIN
X
COMMIT
32. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
DESC dict;
ADD_MONTHS function
4
Common column value
33. 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
Mathematical equations
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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.
34. The time zone displacement value indicates the time difference from _______.
SELECT SYSDATE+1/96 - FROM dual
UTC
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Time zone
35. It is considered good form to put all SQL commands in...
DECODE
All caps
UTC
Time zone
36. List 4 aggregate functions
Scale
2000
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Semicolon or forward slash
37. What does SQL stand for?
Structured Query Language
DICTIONARY
Time zone
B-Tree Index
38. Comparison operators can compare multiple _________________.
Columns
Twice
V$
Default is 14; when you use the default - you repeat the heading every 14 rows.
39. SELECT * FROM instructor ORDER BY phone
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
A correct statement
Optional
DICTIONARY
40. 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
A correct statement
Equijoin
Nested
41. Explain what is found in the All Objects report folder in SQL Developer
Groups
4000
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
42. SELECT LIST of a subquery in an INSERT statement
RIGHT LEFT JOIN
Static or dynamic
X
SET clause of an UPDATE statement
43. List the reasons that a subquery could not be unnested.
X
FALSE
12:00:00 A.M
Multiple rows
44. 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.
Primary key/foreign key
FALSE
LENGTH
INNER JOIN
45. Oracle uses the outer join operator to indicate that nulls are shown for...
Optional
Self-joins
X
Non-matching rows
46. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
X
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.
Twice
Script
47. You use the _________ keyword to add columns or constraints to a table.
ADD
SUM
ALL_OBJECTS
999999.9999
48. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Month ddth - yyyy
Correlated
Data
49. What are the main components of a ROWID?
RIGHT LEFT JOIN
Details
VALUES
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.
50. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
@ or START
FALSE
Scale
RIGHT LEFT JOIN