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 COUNT function is useful for determining whether a table has...
INNER JOIN
ANY
Data
DICTIONARY
2. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
LIKE
Equijoin and identical column names
Command returns the number of records returned by a query.
X
3. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Primary key/foreign key
Fractional seconds
RENAME just_two_more_weeks TO finally_i
Inconsistencies
4. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Retrieve
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.
COMMIT
SELECT DISTINCT menu FROM restaurant
5. Checks whether any value in the list makes the condition true.
Any
Running a script file
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
ON
6. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
STORAGE
IN ANY ALL SOME
ADD
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
7. Write a statement for SQL*Plus that shows the dictionary.
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.
Primary key/foreign key
Committed
DESC dict;
8. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
USER_ - ALL_ - DBA_ - and V$
ALL_OBJECTS
Equijoin
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
9. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
V$
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
Equijoin and correlated subquery
SELECT SYSDATE+1/96 - FROM dual
10. Checks whether any value in the list makes the condition true.
Any
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
99.99
Command returns the number of records returned by a query.
11. 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.
FALSE
X
Hide data
INTERSECT
12. PAGESIZE
Three
Structured Query Language
Primary key/foreign key
Default is 14; when you use the default - you repeat the heading every 14 rows.
13. The _______ function adds values together for a group of rows.
Equijoin and correlated subquery
ANY
SUM
Precision
14. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
BETWEEN
Results
X
All
15. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
Results
Running a script file
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
16. How many characters can you have using the VARCHAR data type?
4000
Columns
Month ddth - yyyy
ANSI
17. You can pass parameters from the operating system when ___________ in SQl*Plus
INTERSECT
Groups
RUN SCRIPT
Running a script file
18. The _______ function lets you perform if-then-else functionality with the SQL language.
Another null
V$
DECODE
Scale
19. List the reasons that a subquery could not be unnested.
Primary key/foreign key
X
FALSE
SELECT SYSDATE+1/96 - FROM dual
20. The TRUNC function on a date without a format model truncates the timestamp to...
FALSE
Inconsistencies
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
21. What is Oracle's most popular index storage structure?
Inconsistencies
Equijoin and identical column names
B-Tree Index
ADD_MONTHS function
22. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
UTC
SET clause of an UPDATE statement
Month ddth - yyyy
RUN SCRIPT
23. What is the tab in SQL Developer where data dictionary view information can be found?
Details
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
Retrieve
DROP INDEX need_to_pass_i
24. What is the first column of a composite index called?
99.99
Logical unit of work
INNER JOIN
Leading-edge
25. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Semicolon or forward slash
MINUS
Hide data
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.
26. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
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.
Default is 14; when you use the default - you repeat the heading every 14 rows.
**** 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
ALL_OBJECTS
27. The _______ operator determines common rows.
INTERSECT
Multiple rows
USER_ - ALL_ - DBA_ - and V$
MINUS
28. What is the maximum value for a column defined as NUMBER(4 -2)?
Extra spaces
DD-MON-YY
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
99.99
29. What do views do that makes them so useful for security?
2000
Optional
Hide data
FALSE
30. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Extra spaces
Both MIN and MAX
Command returns the number of records returned by a query.
Scale
31. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
F12
Rounded edges
Combine
VALUES
32. UNION ALL does not sort - therefore it is less time consuming to use than the...
2000
UNION operator
IN ANY ALL SOME
Mathematical equations
33. Match each of the SQL commands on the left with a verb from the list.
Inconsistencies
Columns
DD-MON-YY
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
34. Joins involving multiple columns must always follow the ____________ relationship path.
Equijoin
Business problems
Primary key/foreign key
Recursive
35. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
X
FALSE
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
SUM
36. In SQL Developer field names and table names are shown in the color _______.
Committed
Results
Black
Multiple rows
37. Explain what a static data dictionary view is and how it is used
ALL_OBJECTS
Committed
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.
Surrogate key
38. Returns rows if the condition is true for all the values in the list
B-Tree Index
ANSI
Default is 14; when you use the default - you repeat the heading every 14 rows.
All
39. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Logical unit of work
DESC dict;
IN ANY ALL SOME
Optional
40. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Common column value
NATURAL JOIN
GROUP BY
41. NUMBER functions can be...
Nested
DECODE
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.
Surrogate key
42. You use the __________ keyword to change characteristics of a column.
Both MIN and MAX
MODIFY
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
43. 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
Logical unit of work
Details
Semicolon or forward slash
44. The ____________ command makes changes permanent.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Default is 14; when you use the default - you repeat the heading every 14 rows.
MODIFY
COMMIT
45. It is considered good form to put all SQL commands in...
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
TO_CHAR function
All caps
ADD_MONTHS function
46. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Multiple rows
Correlated
Month ddth - yyyy
BETWEEN
47. Explain in detail the impact of INDEXES and how they are used by Oracle.
Null
RENAME just_two_more_weeks TO finally_i
ADD
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
48. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
ANY
Surrogate key
FALSE
49. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
Running a script file
Rounded edges
Command returns the number of records returned by a query.
50. The RTRIM function is useful for eliminating ________ in a string.
Equijoin and correlated subquery
Extra spaces
X
When the table is small (unless your business rules require you too)