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. When you run a script in SQL*Plus you must give the...
Command returns the number of records returned by a query.
Location of the file
ADD_MONTHS function
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
2. What are the main components of a ROWID?
4000
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.
Data
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
3. __________________ inserts the current date and time.
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.
Orphan
SYSDATE
SELECT DISTINCT menu FROM restaurant
4. List the reasons that a subquery could not be unnested.
Columns
Data
X
Scale
5. 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?
INNER JOIN
DICTIONARY
Has not changed the name
Scale
6. Which one of the following string functions tells you how many characters are in a string?
SELECT DISTINCT menu FROM restaurant
Month ddth - yyyy
LENGTH
@ or START
7. Explain what a static data dictionary view is and how it is used
Has not changed the name
ALL_OBJECTS
4000
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.
8. What is the data type you can use if you need an unlimited number of textual characters?
ON
Any
KEEP INDEX
CLOB
9. The focus of the logical data model is _____________
Business problems
STORAGE
SUM
99.99
10. Write a statement that drops the index need_to_pass_i
BETWEEN
**** 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
DROP INDEX need_to_pass_i
Both MIN and MAX
11. The purpose of the HAVING clause is to eliminate___________.
Run scripts
ADD
IN ANY ALL SOME
Groups
12. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
Testing functions
CLOB
KEEP INDEX
13. How many characters can be stored in the CHAR column/field?
UNION operator
RENAME just_two_more_weeks TO finally_i
Retrieve
2000
14. To restart a sequence at a lower number - you can drop and ________ the sequence.
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.
Implicit conversion
Black
Re-create
15. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
DICT_COLUMNS
FALSE
Data
Logical unit of work
16. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
99.99
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.
MINUS
17. What do views do that makes them so useful for security?
Recursive
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.
Business problems
Hide data
18. The ___________ operator tests whether a matching row cannot be found.
4
SELECT SYSDATE+1/96 - FROM dual
X
Crow's foot
19. The time zone displacement value indicates the time difference from _______.
VALUES clause of an INSERT statement
ON
UTC
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
20. The ALTER SESSION statement can change the session's...
Time zone
ANSI
Rounded edges
Results
21. Self-joins are useful for performing comparisons and checking for ___________ in data.
Leading-edge
Primary key/foreign key
Inconsistencies
Testing functions
22. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
ROLLBACK
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
INTERSECT
Both MIN and MAX
23. The term ____________ ___________ is used to express a join that satisfies the join condition.
CLOB
INNER JOIN
A correct statement
Details
24. The COUNT function is useful for determining whether a table has...
Equijoin
Parent table
Crow's foot
Data
25. The ______ operator compares a list of values for equivalency
Actual column
INNER JOIN
TO_CHAR function
ANY
26. A _________ subquery returns a single column with a single row
Scalar
Hide data
Time zone
2000
27. 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
28. The RTRIM function is useful for eliminating ________ in a string.
Extra spaces
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.
Equijoin and correlated subquery
@ or START
29. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
FALSE
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
STORAGE
KEEP INDEX
30. A join across three tables can be expressed with the ________ join syntax.
ANSI
The way NULL values are treated
Committed
Any
31. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Mathematical equations
Logical unit of work
ANSI
Fractional seconds
32. Explain in detail the impact of INDEXES and how they are used by Oracle.
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.
+
VALUES clause of an INSERT statement
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
33. Which format mask displays December 31st - 1999?
TO_CHAR function
Month ddth - yyyy
INNER JOIN
Has not changed the name
34. SELECT LIST of a subquery in an INSERT statement
X
ALL_OBJECTS
SET clause of an UPDATE statement
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
35. SELECT * FROM instructor ORDER BY phone
A correct statement
Re-create
LENGTH
Same
36. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ANY
Surrogate key
All caps
ROLLBACK
37. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Implicit conversion
Re-create
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
+
38. The DUAL table can be used for...
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Primary key/foreign key
Actual column
Testing functions
39. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Testing functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Null
999999.9999
40. What is the main difference between the NOT EXISTS and the NOT IN operators?
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.
Twice
99.99
The way NULL values are treated
41. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
The way NULL values are treated
KEEP INDEX
FALSE
Hide data
42. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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.
Same
Primary key/foreign key
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
43. Returns rows if the condition is true for all the values in the list
Correlated
TO_CHAR function
All
Semicolon or forward slash
44. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
Logical unit of work
BETWEEN
Location of the file
45. What is the tab in SQL Developer where data dictionary view information can be found?
LIKE
Extra spaces
INNER JOIN
Details
46. The ________ operator cannot compare against a list of values.
LIKE
BETWEEN
FALSE
CLOB
47. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
Testing functions
SET clause of an UPDATE statement
Details
48. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
Run scripts
Month ddth - yyyy
Combine
RIGHT LEFT JOIN
49. The _____________ clause determines how rows are grouped.
Testing functions
GROUP BY
Any
Surrogate key
50. The COUNT function uses the __________ wildcard.
12:00:00 A.M
Optional
Asterisk
ROLLBACK