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. A _________ subquery returns a single column with a single row
Multiple rows
Same
ANSI
Scalar
2. In a view you can give a column a different name than it has in the...
Parent table
Optional
Orphan
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.
3. Checks whether any value in the list makes the condition true.
Any
SYSDATE
Structured Query Language
Null
4. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Location of the file
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.
X
UNION operator
5. What is the tab in SQL Developer where data dictionary view information can be found?
Details
Null
Time zone
Columns
6. Explain the steps needed to run a script in SQL Developer
STORAGE
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.
Data
ADD_MONTHS function
7. Explain why constraints are used when building tables.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. __________________ inserts the current date and time.
MODIFY
ADD_MONTHS function
Recursive
SYSDATE
9. Write the syntax to rename index just_two_more_weeks_i to finally_i
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Retrieve
RENAME just_two_more_weeks TO finally_i
Precision
10. What are the main components of a ROWID?
@ or START
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.
Constraints are used to enforce the business rules of a system. For instance - 'The salary of an employee may not be a negative number' may be enforced with a check constraint on the salary column. Constraints also ensure integrity and data consisten
Any
11. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
999999.9999
TO_CHAR function
X
VALUES clause of an INSERT statement
12. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
Business problems
Results
Any
13. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
F12
Semicolon or forward slash
Any
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.
14. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Script
INTERSECT
12:00:00 A.M
4
15. LINESIZE
Run scripts
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ROLLBACK
X
16. The ____________ command makes changes permanent.
Any
Data
UTC
COMMIT
17. The DUAL table can be used for...
Testing functions
SUM
Optional
IN ANY ALL SOME
18. The ________ operator cannot compare against a list of values.
LIKE
Surrogate
All
DD-MON-YY
19. Match each of the SQL commands on the left with a verb from the list.
Columns
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
SET clause of an UPDATE statement
All caps
20. How many characters can you have using the VARCHAR data type?
Another null
FALSE
4000
Results
21. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Multiple rows
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.
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.
22. List the different types of data dictionary views.
Time zone
Actual column
Details
USER_ - ALL_ - DBA_ - and V$
23. SELECT * FROM instructor ORDER BY phone
X
A correct statement
4
12:00:00 A.M
24. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Retrieve
V$
Script
Export Data
25. What is Oracle's most popular index storage structure?
Re-create
Script
2000
B-Tree Index
26. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
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.
Scale
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
V$
27. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
DICT_COLUMNS
Recursive
DICTIONARY
28. Oracle uses the outer join operator to indicate that nulls are shown for...
Optional
Non-matching rows
Committed
User-defined reports
29. When you run a script in SQL*Plus you must give the...
ANY
Null
Recursive
Location of the file
30. FEEDBACK
Retrieve
Command returns the number of records returned by a query.
2000
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
31. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Scalar
Null
@ or START
Has not changed the name
32. The RTRIM function is useful for eliminating ________ in a string.
Extra spaces
Constraints are used to enforce the business rules of a system. For instance - 'The salary of an employee may not be a negative number' may be enforced with a check constraint on the salary column. Constraints also ensure integrity and data consisten
LIKE
TO_CHAR function
33. SQL*Plus is used more than SQL Developer when you need to...
X
Actual column
Columns
Run scripts
34. UNION ALL does not sort - therefore it is less time consuming to use than the...
Location of the file
DECODE
UNION operator
Equijoin and correlated subquery
35. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.
ADD
Export Data
Has not changed the name
Scale
36. The _______ operator determines common rows.
Any
Logical unit of work
INTERSECT
**** 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
37. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
B-Tree Index
+
MINUS
Mathematical equations
38. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Inconsistencies
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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
INNER JOIN
39. 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.
B-Tree Index
Re-create
VALUES
Static or dynamic
40. To restart a sequence at a lower number - you can drop and ________ the sequence.
Hide data
Mathematical equations
Re-create
ANY
41. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Scale
ALL_OBJECTS
Precision
Command returns the number of records returned by a query.
42. Explain what a static data dictionary view is and how it is used
Fractional seconds
Testing functions
Actual column
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.
43. Explicit data type conversion is preferable to Oracle's...
12:00:00 A.M
Rounded edges
NATURAL JOIN
Implicit conversion
44. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Nested
UNION operator
Correlated
Fractional seconds
45. ____________ are useful for analyzing and exploring the relationships within your data
Fractional seconds
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Self-joins
Inconsistencies
46. Subqueries can return...
Multiple rows
LIKE
4
Semicolon or forward slash
47. The term ____________ ___________ is used to express a join that satisfies the join condition.
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.
INNER JOIN
When the table is small (unless your business rules require you too)
SUM
48. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
Semicolon or forward slash
Business problems
Asterisk
49. The _______ function adds values together for a group of rows.
SUM
Logical unit of work
Null
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
50. SELECT LIST of a subquery in an INSERT statement
DICTIONARY
UNION
SET clause of an UPDATE statement
ON