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. What is the keyboard shortcut for the ROLLBACK command?
Extra spaces
F12
Optional
Asterisk
2. The time zone displacement value indicates the time difference from _______.
UTC
DESC dict;
RIGHT LEFT JOIN
All caps
3. The ________ operator cannot compare against a list of values.
Correlated
LIKE
INNER JOIN
BETWEEN
4. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
RENAME just_two_more_weeks TO finally_i
DICT_COLUMNS
Scale
INNER JOIN
5. To equijoin a table with another table involves matching the...
Combine
Common column value
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Crow's foot
6. When you run a script in SQL*Plus you must give the...
Location of the file
ANY
Black
@ or START
7. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
SET clause of an UPDATE statement
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Results
8. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Script
STORAGE
A correct statement
4000
9. When column names on the tables are different - you use the ______ condition.
Running a script file
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
MINUS
ON
10. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
ON
Equijoin and correlated subquery
SYSDATE
Multiple rows
11. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Location of the file
Nested
The way NULL values are treated
Script
12. Explain what a static data dictionary view is and how it is used
SELECT DISTINCT menu FROM restaurant
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.
Self-joins
BETWEEN
13. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
ANY
4
Mathematical equations
14. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
STORAGE
Logical unit of work
Results
15. What is the first column of a composite index called?
F12
Leading-edge
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
X
16. The _______ operator determines common rows.
INTERSECT
Script
DROP INDEX need_to_pass_i
VALUES
17. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Logical unit of work
IN ANY ALL SOME
Script
FALSE
18. __________________ inserts the current date and time.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Black
SYSDATE
Precision
19. _________________ relationships are always optional relationships.
Recursive
Correlated
Any
SET clause of an UPDATE statement
20. The using clause of the ANSI join syntax always assumes an...
Any
Any
Equijoin and identical column names
Retrieve
21. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
X
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Testing functions
NATURAL JOIN
22. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Semicolon or forward slash
999999.9999
User-defined reports
When the table is small (unless your business rules require you too)
23. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
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
X
All
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
24. 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.
Null
VALUES
Testing functions
Columns
25. What are the main components of a ROWID?
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.
ON
UNION operator
26. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
ALL_OBJECTS
RUN SCRIPT
X
Committed
27. In SQL Developer field names and table names are shown in the color _______.
Black
**** 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
Combine
FALSE
28. What is the most common DATE format found in SQL?
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
DICT_COLUMNS
DD-MON-YY
Orphan
29. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
B-Tree Index
Run scripts
+
30. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
X
Correlated
IN ANY ALL SOME
Optional
31. Write a statement that drops the index need_to_pass_i
Equijoin
DROP INDEX need_to_pass_i
Surrogate
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
32. Checks whether any value in the list makes the condition true.
Any
Orphan
Black
F12
33. The _____________ clause determines how rows are grouped.
Scale
Time zone
GROUP BY
Retrieve
34. The COUNT function is useful for determining whether a table has...
Equijoin
The way NULL values are treated
Data
Null
35. Explain how Substitution Variables are used when writing scripts.
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.
F12
Same
Parent table
36. The key that most database designers prefer and is chosen by the system is the _____________ key.
12:00:00 A.M
FALSE
Surrogate
Parent table
37. UNION ALL does not sort - therefore it is less time consuming to use than the...
Recursive
UNION operator
Committed
USER_ - ALL_ - DBA_ - and V$
38. How many characters can be stored in the CHAR column/field?
Script
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
F12
2000
39. 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?
DICTIONARY
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.
Rounded edges
Surrogate key
40. Checks whether any value in the list makes the condition true.
Parent table
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
Optional
Any
41. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
BETWEEN
The way NULL values are treated
Columns
42. The ____________ command makes changes permanent.
Retrieve
COMMIT
Logical unit of work
FALSE
43. Returns rows if the condition is true for all the values in the list
DESC dict;
Month ddth - yyyy
All
12:00:00 A.M
44. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Surrogate
Rounded edges
Both MIN and MAX
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
45. How many characters can you have using the VARCHAR data type?
Twice
SUM
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
4000
46. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
**** 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
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
INNER JOIN
47. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
IN ANY ALL SOME
ALL_OBJECTS
Inconsistencies
Equijoin
48. The ___________ operator tests whether a matching row cannot be found.
When the table is small (unless your business rules require you too)
DROP INDEX need_to_pass_i
X
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
49. You can use the ________________ to subtract months from a given date.
ADD_MONTHS function
Precision
When the table is small (unless your business rules require you too)
2000
50. In a view you can give a column a different name than it has in the...
RUN SCRIPT
MINUS
Parent table
ALL_OBJECTS