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. Users can only see changes made to a database once they have been...
Semicolon or forward slash
Structured Query Language
Committed
Orphan
2. Checks whether any value in the list makes the condition true.
Command returns the number of records returned by a query.
Any
Black
ROLLBACK
3. List the reasons that a subquery could not be unnested.
Implicit conversion
Inconsistencies
DD-MON-YY
X
4. The DUAL table can be used for...
Data
Static or dynamic
Testing functions
Script
5. In SQL Developer field names and table names are shown in the color _______.
STORAGE
Black
Self-joins
Twice
6. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
Equijoin and identical column names
STORAGE
Black
7. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Command returns the number of records returned by a query.
Rounded edges
Both MIN and MAX
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.
8. What is the name of the key automatically generated from a sequence?
Testing functions
Same
Equijoin
Surrogate key
9. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
Script
TO_CHAR function
Results
10. Returns rows if the condition is true for all the values in the list
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.
Script
When the table is small (unless your business rules require you too)
All
11. The _______ function adds values together for a group of rows.
SUM
Combine
ANY
Groups
12. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
INNER JOIN
Twice
VALUES clause of an INSERT statement
Both MIN and MAX
13. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
B-Tree Index
Month ddth - yyyy
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.
14. When is it not a good idea to use an index?
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
999999.9999
Scalar
When the table is small (unless your business rules require you too)
15. To join four tables - you must have at least _____ join conditions.
SET clause of an UPDATE statement
Three
Data
Crow's foot
16. What is the maximum value for a column defined as NUMBER(4 -2)?
Leading-edge
FALSE
99.99
Has not changed the name
17. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
Results
X
Multiple rows
18. Explain in detail the impact of INDEXES and how they are used by Oracle.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ON
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
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
19. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Recursive
ALL_OBJECTS
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
Month ddth - yyyy
20. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
USER_ - ALL_ - DBA_ - and V$
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Has not changed the name
21. Which operator is most commonly used?
UNION
Common column value
Precision
DECODE
22. When you run a script in SQL*Plus you must give the...
Static or dynamic
Location of the file
Another null
SET clause of an UPDATE statement
23. The _____________ clause determines how rows are grouped.
Retrieve
GROUP BY
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Orphan
24. To restart a sequence at a lower number - you can drop and ________ the sequence.
Re-create
ON
Committed
USER_ - ALL_ - DBA_ - and V$
25. When you have issued a DELETE command - you can still ________ those rows and restore the information.
USER_ - ALL_ - DBA_ - and V$
Retrieve
Data
Any
26. The ___________ operator tests whether a matching row cannot be found.
X
Scale
Retrieve
The way NULL values are treated
27. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Re-create
Multiple rows
Rounded edges
MINUS
28. LINESIZE
UTC
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
MINUS
TO_CHAR function
29. Explain the steps needed to run a script in SQL Developer
12:00:00 A.M
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.
Recursive
ADD
30. ____________ are useful for analyzing and exploring the relationships within your data
INNER JOIN
Self-joins
VALUES clause of an INSERT statement
2000
31. How many characters can you have using the VARCHAR data type?
4000
DROP INDEX need_to_pass_i
Results
2000
32. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
COMMIT
LIKE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Results
33. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
Combine
TO_CHAR function
STORAGE
34. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Correlated
Business problems
Precision
Semicolon or forward slash
35. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
INTERSECT
Rounded edges
SUM
DICT_COLUMNS
36. _________________ relationships are always optional relationships.
Recursive
Export Data
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Combine
37. NUMBER functions can be...
4
Nested
Month ddth - yyyy
CLOB
38. What is Oracle's most popular index storage structure?
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
999999.9999
Testing functions
B-Tree Index
39. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
999999.9999
ADD_MONTHS function
Details
40. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Both MIN and MAX
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
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.
41. What is the keyboard shortcut for the ROLLBACK command?
SUM
Recursive
F12
ANSI
42. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Scale
Structured Query Language
STORAGE
UNION
43. Self-joins are useful for performing comparisons and checking for ___________ in data.
TO_CHAR function
Inconsistencies
Twice
999999.9999
44. What is the most common DATE format found in SQL?
Three
+
STORAGE
DD-MON-YY
45. 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.
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
Has not changed the name
User-defined reports
Results
46. A calculation with a null always yields...
A correct statement
Another null
Committed
Static or dynamic
47. 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
48. Explicit data type conversion is preferable to Oracle's...
Extra spaces
Implicit conversion
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
49. In a view you can give a column a different name than it has in the...
Groups
Parent table
A correct statement
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
50. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183