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 TIMESTAMP WITH LOCAL TIME ZONE data type allows...
BETWEEN
Fractional seconds
Command returns the number of records returned by a query.
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.
2. What is Oracle's most popular index storage structure?
Crow's foot
DICT_COLUMNS
Command returns the number of records returned by a query.
B-Tree Index
3. Checks whether any value in the list makes the condition true.
Both MIN and MAX
ANSI
RENAME just_two_more_weeks TO finally_i
Any
4. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
Mathematical equations
12:00:00 A.M
RENAME just_two_more_weeks TO finally_i
5. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
999999.9999
@ 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.
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
6. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Mathematical equations
Results
DD-MON-YY
Combine
7. The focus of the logical data model is _____________
Business problems
ROLLBACK
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.
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
8. 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
9. You use the _________ keyword to add columns or constraints to a table.
ADD
SYSDATE
X
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
10. Which one of the following string functions tells you how many characters are in a string?
LENGTH
INTERSECT
Black
Default is 14; when you use the default - you repeat the heading every 14 rows.
11. The TRUNC function on a date without a format model truncates the timestamp to...
V$
12:00:00 A.M
Data
Any
12. Comparison operators can compare multiple _________________.
ANY
Columns
UNION operator
Extra spaces
13. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Details
SELECT DISTINCT menu FROM restaurant
ROLLBACK
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
14. Users can only see changes made to a database once they have been...
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
Re-create
Committed
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
15. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
USER_ - ALL_ - DBA_ - and V$
All caps
LIKE
16. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Testing functions
INTERSECT
SET clause of an UPDATE statement
BETWEEN
17. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
F12
KEEP INDEX
ALL_OBJECTS
Actual column
18. When is it not a good idea to use an index?
MODIFY
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
When the table is small (unless your business rules require you too)
ANSI
19. 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.
Retrieve
SELECT DISTINCT menu FROM restaurant
Has not changed the name
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.
20. Explain in detail the impact of INDEXES and how they are used by Oracle.
Retrieve
Self-joins
ANSI
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
21. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
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
X
Data
User-defined reports
22. The key that most database designers prefer and is chosen by the system is the _____________ key.
Script
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.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Surrogate
23. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
DESC dict;
X
Default is 14; when you use the default - you repeat the heading every 14 rows.
Same
24. List the reasons that a subquery could not be unnested.
V$
Implicit conversion
TO_CHAR function
X
25. The ____________ command makes changes permanent.
COMMIT
4
2000
Parent table
26. What is the data type you can use if you need an unlimited number of textual characters?
Business problems
Non-matching rows
CLOB
Combine
27. List the steps performed by a correlated subquery.
User-defined reports
**** 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
RUN SCRIPT
Same
28. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
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.
99.99
RENAME just_two_more_weeks TO finally_i
@ or START
29. What is the maximum value for a column defined as NUMBER(4 -2)?
SET clause of an UPDATE statement
When the table is small (unless your business rules require you too)
Fractional seconds
99.99
30. The ______ operator compares a list of values for equivalency
ANY
Hide data
SELECT DISTINCT menu FROM restaurant
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
31. List 6 Table-Related Menu Choices
X
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Scale
Same
32. The _____________ clause determines how rows are grouped.
Location of the file
Any
Multiple rows
GROUP BY
33. Write the syntax to rename index just_two_more_weeks_i to finally_i
Surrogate key
Semicolon or forward slash
RENAME just_two_more_weeks TO finally_i
Equijoin
34. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
User-defined reports
+
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
USER_ - ALL_ - DBA_ - and V$
35. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Actual column
IN ANY ALL SOME
UNION operator
VALUES
36. Another name for a data dictionary view is __________________ or _________________.
Static or dynamic
SELECT SYSDATE+1/96 - FROM dual
Same
2000
37. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
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.
ADD_MONTHS function
VALUES
Equijoin
38. 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.
+
Leading-edge
RIGHT LEFT JOIN
Both MIN and MAX
39. UNION ALL does not sort - therefore it is less time consuming to use than the...
KEEP INDEX
4000
UNION operator
UNION
40. The RTRIM function is useful for eliminating ________ in a string.
STORAGE
Extra spaces
Twice
Inconsistencies
41. What is the name of the key automatically generated from a sequence?
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
Non-matching rows
Surrogate key
Twice
42. NUMBER functions can be...
UNION
DICTIONARY
Command returns the number of records returned by a query.
Nested
43. The _______ operator determines common rows.
Inconsistencies
TO_CHAR function
UNION
INTERSECT
44. __________________ inserts the current date and time.
Equijoin and correlated subquery
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Any
SYSDATE
45. How many characters can be stored in the CHAR column/field?
MINUS
2000
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
DD-MON-YY
46. The using clause of the ANSI join syntax always assumes an...
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.
Implicit conversion
Equijoin and identical column names
Equijoin
47. The COUNT function is useful for determining whether a table has...
Any
Primary key/foreign key
Data
UNION
48. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Asterisk
Script
Month ddth - yyyy
49. 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.
Has not changed the name
Leading-edge
VALUES
Fractional seconds
50. Checks whether any value in the list makes the condition true.
Any
Combine
Recursive
Both MIN and MAX