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 ALTER SESSION statement can change the session's...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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.
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.
Time zone
2. LINESIZE
Structured Query Language
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)
DD-MON-YY
3. The query retrieves more than 5 to 15 percent of the rows
Structured Query Language
DICT_COLUMNS
Common column value
The indexed column is part of an expression. In this case - consider creating a function-based index instead
4. 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
5. The ______ operator compares a list of values for equivalency
12:00:00 A.M
UTC
Results
ANY
6. Converting a text literal to DATE format requires the use of the...
DECODE
Correlated
TO_CHAR function
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
7. The TRUNC function on a date without a format model truncates the timestamp to...
LIKE
12:00:00 A.M
GROUP BY
Running a script file
8. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
Running a script file
Script
Optional
9. SQL*Plus is used more than SQL Developer when you need to...
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
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
Run scripts
ADD_MONTHS function
10. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
999999.9999
Testing functions
All caps
11. Explain what a static data dictionary view is and how it is used
NATURAL JOIN
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.
Committed
Inconsistencies
12. The _______ operator determines common rows.
Recursive
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.
X
INTERSECT
13. To restart a sequence at a lower number - you can drop and ________ the sequence.
DD-MON-YY
Business problems
DROP INDEX need_to_pass_i
Re-create
14. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
@ or START
DICTIONARY
DD-MON-YY
Correlated
15. 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.
Script
STORAGE
The way NULL values are treated
Has not changed the name
16. Explain how the SPOOL command is used and what program it can be used in.
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.
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
IN ANY ALL SOME
DROP INDEX need_to_pass_i
17. The DUAL table can be used for...
ADD
Testing functions
Any
X
18. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
F12
Has not changed the name
Re-create
19. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Columns
MINUS
RUN SCRIPT
BETWEEN
20. Users can only see changes made to a database once they have been...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Committed
X
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.
21. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
Month ddth - yyyy
Equijoin
Columns
22. Explain in detail the impact of INDEXES and how they are used by Oracle.
Same
ANY
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
12:00:00 A.M
23. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Script
Default is 14; when you use the default - you repeat the heading every 14 rows.
FALSE
ANSI
24. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
4
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
25. What is the data type you can use if you need an unlimited number of textual characters?
USER_ - ALL_ - DBA_ - and V$
A correct statement
CLOB
UNION operator
26. _________________ relationships are always optional relationships.
IN ANY ALL SOME
STORAGE
Recursive
Re-create
27. What is the first column of a composite index called?
FALSE
Fractional seconds
TO_CHAR function
Leading-edge
28. 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.
DICT_COLUMNS
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.
RUN SCRIPT
29. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
TO_CHAR function
Details
DICT_COLUMNS
30. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
UTC
Three
Surrogate
31. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Nested
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.
32. What is the most common DATE format found in SQL?
Non-matching rows
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
DD-MON-YY
Crow's foot
33. To join four tables - you must have at least _____ join conditions.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Asterisk
Three
ROLLBACK
34. 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
35. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
DICTIONARY
DICT_COLUMNS
When the table is small (unless your business rules require you too)
36. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
Multiple rows
Parent table
SELECT DISTINCT menu FROM restaurant
37. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
Non-matching rows
INTERSECT
Equijoin
38. How many characters can be stored in the CHAR column/field?
2000
LENGTH
Structured Query Language
Location of the file
39. The _______ function lets you perform if-then-else functionality with the SQL language.
SET clause of an UPDATE statement
Rounded edges
Null
DECODE
40. In a view you can give a column a different name than it has in the...
Parent table
Running a script file
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
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
41. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
Equijoin
ROLLBACK
SYSDATE
42. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Common column value
12:00:00 A.M
Rounded edges
IN ANY ALL SOME
43. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
GROUP BY
Nested
Combine
INNER JOIN
44. You can use the ________________ to subtract months from a given date.
Month ddth - yyyy
DROP INDEX need_to_pass_i
ADD_MONTHS function
Run scripts
45. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
RUN SCRIPT
Retrieve
+
46. Checks whether any value in the list makes the condition true.
USER_ - ALL_ - DBA_ - and V$
VALUES
ROLLBACK
Any
47. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
LENGTH
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Another null
48. List 4 aggregate functions
INNER JOIN
Mathematical equations
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Actual column
49. What is the keyboard shortcut for the ROLLBACK command?
Equijoin and correlated subquery
ADD
F12
FALSE
50. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Scalar
COMMIT
The indexed column is part of an expression. In this case - consider creating a function-based index instead