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. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
X
SET clause of an UPDATE statement
All
2. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
UTC
Both MIN and MAX
Export Data
3. When you run a script in SQL*Plus you must give the...
Multiple rows
Location of the file
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.
Semicolon or forward slash
4. Self-joins are useful for performing comparisons and checking for ___________ in data.
**** 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
2000
INNER JOIN
Inconsistencies
5. The ________ operator cannot compare against a list of values.
FALSE
Retrieve
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
LIKE
6. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
Another null
999999.9999
UTC
7. It is considered good form to put all SQL commands in...
Equijoin and identical column names
All caps
Static or dynamic
Testing functions
8. The _______ function lets you perform if-then-else functionality with the SQL language.
Any
DECODE
UNION
SELECT DISTINCT menu FROM restaurant
9. Dynamic views begin with a ___________.
V$
Twice
IN ANY ALL SOME
User-defined reports
10. __________________ inserts the current date and time.
ALL_OBJECTS
SYSDATE
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
DROP INDEX need_to_pass_i
11. What is the maximum value for a column defined as NUMBER(4 -2)?
MINUS
Data
99.99
USER_ - ALL_ - DBA_ - and V$
12. A transaction is a...
DECODE
Logical unit of work
Twice
Scalar
13. You use the __________ keyword to change characteristics of a column.
Black
Inconsistencies
X
MODIFY
14. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
X
X
Location of the file
15. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
UNION operator
ON
BETWEEN
ROLLBACK
16. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
All
VALUES
Rounded edges
17. To equijoin a table with another table involves matching the...
12:00:00 A.M
ANSI
4
Common column value
18. The key that most database designers prefer and is chosen by the system is the _____________ key.
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.
Surrogate
MINUS
X
19. SELECT * FROM instructor ORDER BY phone
USER_ - ALL_ - DBA_ - and V$
A correct statement
UTC
Implicit conversion
20. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
VALUES clause of an INSERT statement
All
Results
Both MIN and MAX
21. PAGESIZE
Inconsistencies
Default is 14; when you use the default - you repeat the heading every 14 rows.
Non-matching rows
X
22. 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.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Data
Correlated
23. The ______ operator compares a list of values for equivalency
X
LENGTH
BETWEEN
ANY
24. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
V$
@ or START
Orphan
Testing functions
25. You can pass parameters from the operating system when ___________ in SQl*Plus
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
V$
Running a script file
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
26. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
User-defined reports
Common column value
Export Data
Retrieve
27. _________________ relationships are always optional relationships.
Recursive
Data
Structured Query Language
Results
28. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Recursive
BETWEEN
X
DESC dict;
29. Explain how Substitution Variables are used when writing scripts.
Black
MINUS
Any
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.
30. How many characters can you have using the VARCHAR data type?
4000
UNION operator
ADD
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
31. SQL*Plus is used more than SQL Developer when you need to...
Equijoin and identical column names
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
Re-create
Run scripts
32. Another name for a data dictionary view is __________________ or _________________.
Static or dynamic
Command returns the number of records returned by a query.
Same
Orphan
33. The time zone displacement value indicates the time difference from _______.
IN ANY ALL SOME
UTC
Time zone
Data
34. Checks whether any value in the list makes the condition true.
Leading-edge
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.
Any
KEEP INDEX
35. When you have issued a DELETE command - you can still ________ those rows and restore the information.
A correct statement
Extra spaces
Retrieve
SUM
36. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Nested
Equijoin and correlated subquery
Retrieve
Command returns the number of records returned by a query.
37. In SQL Developer field names and table names are shown in the color _______.
Black
RUN SCRIPT
Common column value
Null
38. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.
F12
FALSE
X
99.99
39. Explain how the SPOOL command is used and what program it can be used in.
MODIFY
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
Common column value
40. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
41. What is the keyboard shortcut for the ROLLBACK command?
Parent table
Orphan
F12
Implicit conversion
42. ____________ are useful for analyzing and exploring the relationships within your data
Primary key/foreign key
A correct statement
Self-joins
RENAME just_two_more_weeks TO finally_i
43. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
B-Tree Index
Inconsistencies
Combine
Re-create
44. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Scale
ALL_OBJECTS
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
Hide data
45. List the reasons that a subquery could not be unnested.
X
SELECT SYSDATE+1/96 - FROM dual
Actual column
RUN SCRIPT
46. The term ____________ ___________ is used to express a join that satisfies the join condition.
UNION operator
Primary key/foreign key
INNER JOIN
BETWEEN
47. The RTRIM function is useful for eliminating ________ in a string.
USER_ - ALL_ - DBA_ - and V$
DESC dict;
Equijoin and correlated subquery
Extra spaces
48. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
User-defined reports
Optional
ANSI
Self-joins
49. Comparison operators can compare multiple _________________.
**** 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
ALL_OBJECTS
Equijoin and correlated subquery
Columns
50. The ____________ command makes changes permanent.
COMMIT
FALSE
Static or dynamic
BETWEEN