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. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Semicolon or forward slash
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
2. Comparison operators can compare multiple _________________.
Columns
RUN SCRIPT
User-defined reports
UNION
3. What do views do that makes them so useful for security?
SELECT SYSDATE+1/96 - FROM dual
Asterisk
Hide data
12:00:00 A.M
4. Explain how Substitution Variables are used when writing scripts.
2000
Export Data
DICTIONARY
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.
5. Checks whether any value in the list makes the condition true.
ON
Location of the file
Any
INNER JOIN
6. Checks whether any value in the list makes the condition true.
4000
DICTIONARY
Any
Structured Query Language
7. When is it not a good idea to use an index?
Orphan
X
When the table is small (unless your business rules require you too)
UTC
8. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Leading-edge
LIKE
V$
9. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
MINUS
BETWEEN
DICT_COLUMNS
MODIFY
10. You can pass parameters from the operating system when ___________ in SQl*Plus
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.
Testing functions
Orphan
Running a script file
11. What does SQL stand for?
Structured Query Language
UTC
B-Tree Index
ON
12. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
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
Business problems
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
MINUS
13. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
ADD
Optional
Scalar
Both MIN and MAX
14. What is the maximum value for a column defined as NUMBER(4 -2)?
DESC dict;
99.99
Scale
Groups
15. List the steps performed by a correlated subquery.
F12
**** 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
Three
16. List the different types of data dictionary views.
UTC
USER_ - ALL_ - DBA_ - and V$
Equijoin
FALSE
17. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Crow's foot
Asterisk
Same
12:00:00 A.M
18. Explain what is found in the All Objects report folder in SQL Developer
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
X
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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
19. The _______ function lets you perform if-then-else functionality with the SQL language.
Surrogate
DECODE
Three
Export Data
20. The COUNT function is useful for determining whether a table has...
Data
RENAME just_two_more_weeks TO finally_i
UTC
2000
21. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
Default is 14; when you use the default - you repeat the heading every 14 rows.
Primary key/foreign key
When the table is small (unless your business rules require you too)
22. 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
23. In a view you can give a column a different name than it has in the...
B-Tree Index
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.
Parent table
X
24. The query retrieves more than 5 to 15 percent of the rows
Surrogate key
X
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.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
25. Write a statement for SQL*Plus that shows the dictionary.
STORAGE
DESC dict;
CLOB
Inconsistencies
26. The ______ operator compares a list of values for equivalency
Equijoin
ANSI
Data
ANY
27. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
Black
VALUES clause of an INSERT statement
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
28. _________ rows are not allowed in the relational model.
Parent table
12:00:00 A.M
Orphan
TO_CHAR function
29. How many characters can you have using the VARCHAR data type?
RUN SCRIPT
4000
FALSE
Results
30. Write a statement that drops the index need_to_pass_i
Extra spaces
DROP INDEX need_to_pass_i
All caps
UNION
31. Subqueries can return...
Null
Multiple rows
NATURAL JOIN
Groups
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
Parent table
Details
COMMIT
33. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Data
Fractional seconds
Primary key/foreign key
Both MIN and MAX
34. The DUAL table can be used for...
Null
Testing functions
Fractional seconds
ALL_OBJECTS
35. The _______ function adds values together for a group of rows.
ANSI
Parent table
SUM
Business problems
36. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
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
VALUES
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
STORAGE
37. The _____________ clause determines how rows are grouped.
GROUP BY
Null
Has not changed the name
Fractional seconds
38. The purpose of the HAVING clause is to eliminate___________.
Groups
Self-joins
Primary key/foreign key
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
39. Which one of the following string functions tells you how many characters are in a string?
Groups
ROLLBACK
LENGTH
Month ddth - yyyy
40. A calculation with a null always yields...
Another null
12:00:00 A.M
Groups
Leading-edge
41. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
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.
Columns
Asterisk
Export Data
42. What is Oracle's most popular index storage structure?
ROLLBACK
B-Tree Index
ADD
Business problems
43. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
All caps
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ROLLBACK
Correlated
44. A join across three tables can be expressed with the ________ join syntax.
ANSI
Time zone
Scale
Common column value
45. What is the main difference between the NOT EXISTS and the NOT IN operators?
X
UTC
999999.9999
The way NULL values are treated
46. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
Logical unit of work
Black
Testing functions
47. When you run a script in SQL*Plus you must give the...
V$
Location of the file
99.99
DROP INDEX need_to_pass_i
48. 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
X
X
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
49. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
MODIFY
All caps
Null
Equijoin
50. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Twice
Null
LIKE
When the table is small (unless your business rules require you too)