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. You use the __________ keyword to change characteristics of a column.
Leading-edge
MODIFY
INNER JOIN
Details
2. The DUAL table can be used for...
Extra spaces
Columns
Testing functions
Multiple rows
3. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
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
Crow's foot
Semicolon or forward slash
4. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Null
Mathematical equations
IN ANY ALL SOME
Optional
5. SELECT * FROM instructor ORDER BY phone
Semicolon or forward slash
ANY
UTC
A correct statement
6. How many characters can you have using the VARCHAR data type?
Run scripts
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.
Hide data
4000
7. PAGESIZE
SELECT SYSDATE+1/96 - FROM dual
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.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Parent table
8. The term ____________ ___________ is used to express a join that satisfies the join condition.
Structured Query Language
Both MIN and MAX
Columns
INNER JOIN
9. Oracle uses the outer join operator to indicate that nulls are shown for...
Recursive
BETWEEN
Non-matching rows
MINUS
10. To join four tables - you must have at least _____ join conditions.
X
Three
Orphan
@ or START
11. The _______ function lets you perform if-then-else functionality with the SQL language.
Surrogate
Implicit conversion
TO_CHAR function
DECODE
12. List 4 aggregate functions
Data
A correct statement
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Any
13. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
F12
Equijoin and correlated subquery
IN ANY ALL SOME
Scale
14. When is it not a good idea to use an index?
BETWEEN
FALSE
When the table is small (unless your business rules require you too)
Three
15. _________________ relationships are always optional relationships.
Equijoin and correlated subquery
Default is 14; when you use the default - you repeat the heading every 14 rows.
Recursive
12:00:00 A.M
16. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Surrogate
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
MINUS
Correlated
17. The ___________ operator tests whether a matching row cannot be found.
Run scripts
DESC dict;
X
When the table is small (unless your business rules require you too)
18. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
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
Leading-edge
19. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
LIKE
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.
SELECT DISTINCT menu FROM restaurant
X
20. A transaction is a...
Logical unit of work
INTERSECT
SELECT SYSDATE+1/96 - FROM dual
2000
21. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Command returns the number of records returned by a query.
DD-MON-YY
Static or dynamic
22. Joins involving multiple columns must always follow the ____________ relationship path.
FALSE
Same
Primary key/foreign key
Data
23. The _______ function adds values together for a group of rows.
RIGHT LEFT JOIN
Equijoin and identical column names
LIKE
SUM
24. List the reasons that a subquery could not be unnested.
STORAGE
X
Logical unit of work
V$
25. The RTRIM function is useful for eliminating ________ in a string.
Extra spaces
Location of the file
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
26. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Structured Query Language
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
Fractional seconds
99.99
27. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
Implicit conversion
X
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
28. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Default is 14; when you use the default - you repeat the heading every 14 rows.
LIKE
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ROLLBACK
29. Explain what is found in the All Objects report folder in SQL Developer
Implicit conversion
Data
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
SELECT DISTINCT menu FROM restaurant
30. List the steps performed by a correlated subquery.
DICT_COLUMNS
All caps
**** 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
STORAGE
31. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Correlated
Orphan
Null
Has not changed the name
32. What does SQL stand for?
INNER JOIN
Structured Query Language
Running a script file
Hide data
33. Explain in detail the impact of INDEXES and how they are used by Oracle.
Both MIN and MAX
A correct 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
Implicit conversion
34. 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?
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.
Details
4
DICTIONARY
35. What is the first column of a composite index called?
RIGHT LEFT JOIN
Implicit conversion
FALSE
Leading-edge
36. A join across three tables can be expressed with the ________ join syntax.
DD-MON-YY
SELECT DISTINCT menu FROM restaurant
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
ANSI
37. Another name for a data dictionary view is __________________ or _________________.
ADD_MONTHS function
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
Script
Static or dynamic
38. Converting a text literal to DATE format requires the use of the...
All
Default is 14; when you use the default - you repeat the heading every 14 rows.
Details
TO_CHAR function
39. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Export Data
Three
Re-create
Self-joins
40. When column names on the tables are different - you use the ______ condition.
X
ON
Hide data
999999.9999
41. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Equijoin and correlated subquery
BETWEEN
Mathematical equations
ALL_OBJECTS
42. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
Black
KEEP INDEX
ANY
43. The COUNT function uses the __________ wildcard.
Non-matching rows
Hide data
Asterisk
X
44. The COUNT function is useful for determining whether a table has...
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.
DECODE
Data
Black
45. What is the name of the key automatically generated from a sequence?
Testing functions
Parent table
Surrogate key
99.99
46. Subqueries can return...
SUM
4
Multiple rows
DICT_COLUMNS
47. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
Structured Query Language
**** 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
DICT_COLUMNS
48. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
Export Data
SELECT SYSDATE+1/96 - FROM dual
Optional
49. The purpose of the HAVING clause is to eliminate___________.
ANSI
ADD_MONTHS function
NATURAL JOIN
Groups
50. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Common column value
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.
The indexed column is part of an expression. In this case - consider creating a function-based index instead