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. Joins involving multiple columns must always follow the ____________ relationship path.
Testing functions
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Primary key/foreign key
**** 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
2. How many characters can you have using the VARCHAR data type?
+
4000
Structured Query Language
Static or dynamic
3. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
GROUP BY
Leading-edge
Semicolon or forward slash
ON
4. __________________ inserts the current date and time.
SYSDATE
Surrogate
Combine
Export Data
5. Write a statement that drops the index need_to_pass_i
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
DROP INDEX need_to_pass_i
ON
ADD_MONTHS function
6. Self-joins are useful for performing comparisons and checking for ___________ in data.
DICT_COLUMNS
Inconsistencies
IN ANY ALL SOME
ALL_OBJECTS
7. FEEDBACK
Command returns the number of records returned by a query.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
The way NULL values are treated
Three
8. The same function can be used ______ in a SELECT statement.
Time zone
All
Twice
B-Tree Index
9. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
Command returns the number of records returned by a query.
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
Testing functions
10. To restart a sequence at a lower number - you can drop and ________ the sequence.
Export Data
Re-create
Details
4
11. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
USER_ - ALL_ - DBA_ - and V$
Precision
Surrogate key
FALSE
12. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
UNION
Three
SYSDATE
13. When you have issued a DELETE command - you can still ________ those rows and restore the information.
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
4
Retrieve
Structured Query Language
14. The using clause of the ANSI join syntax always assumes an...
Leading-edge
4000
Self-joins
Equijoin and identical column names
15. To join four tables - you must have at least _____ join conditions.
Export Data
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ADD_MONTHS function
Three
16. The DUAL table can be used for...
Testing functions
Re-create
Logical unit of work
Semicolon or forward slash
17. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
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
4
MINUS
Logical unit of work
18. The _______ operator determines common rows.
Any
Correlated
Actual column
INTERSECT
19. The purpose of the HAVING clause is to eliminate___________.
X
VALUES
Groups
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
20. Returns rows if the condition is true for all the values in the list
All
Hide data
Testing functions
Month ddth - yyyy
21. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
99.99
INTERSECT
Script
22. The query retrieves more than 5 to 15 percent of the rows
DROP INDEX need_to_pass_i
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Multiple rows
Static or dynamic
23. What is the keyboard shortcut for the ROLLBACK command?
Results
Equijoin
Running a script file
F12
24. Which one of the following string functions tells you how many characters are in a string?
The way NULL values are treated
Location of the file
Run scripts
LENGTH
25. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Parent table
BETWEEN
Another null
Combine
26. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Hide data
Business problems
Rounded edges
27. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Static or dynamic
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
@ or START
STORAGE
28. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
2000
BETWEEN
SET clause of an UPDATE statement
COMMIT
29. What do views do that makes them so useful for security?
BETWEEN
MINUS
Black
Hide data
30. You can use the ________________ to subtract months from a given date.
Actual column
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ADD_MONTHS function
99.99
31. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
STORAGE
FALSE
Export Data
Fractional seconds
32. 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.
Another null
Groups
2000
33. The time zone displacement value indicates the time difference from _______.
DROP INDEX need_to_pass_i
Primary key/foreign key
UTC
VALUES
34. Queries that are found in parentheses are done first - just as in the order of operations when doing...
All
ON
DICT_COLUMNS
Mathematical equations
35. Explain in detail the impact of INDEXES and how they are used by Oracle.
Twice
INNER JOIN
V$
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
36. What are the main components of a ROWID?
Semicolon or forward slash
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.
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
DECODE
37. Converting a text literal to DATE format requires the use of the...
INNER JOIN
Same
TO_CHAR function
FALSE
38. A calculation with a null always yields...
Another null
SYSDATE
Running a script file
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
39. What does SQL stand for?
Structured Query Language
IN ANY ALL SOME
Month ddth - yyyy
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
40. List the different types of data dictionary views.
DD-MON-YY
USER_ - ALL_ - DBA_ - and V$
4
Re-create
41. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
Location of the file
Non-matching rows
All caps
42. 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.
Orphan
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.
Re-create
Has not changed the name
43. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
Mathematical equations
Scalar
Business problems
44. The ROWID pseudocolumn is not an ________- but it acts like one.
Correlated
Actual column
V$
Primary key/foreign key
45. Oracle uses the outer join operator to indicate that nulls are shown for...
99.99
Non-matching rows
DD-MON-YY
Surrogate key
46. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Equijoin
Location of the file
ROLLBACK
47. Users can only see changes made to a database once they have been...
Three
ALL_OBJECTS
Groups
Committed
48. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
12:00:00 A.M
VALUES
Script
49. The __________ operator is inclusive of the two values specified.
ALL_OBJECTS
BETWEEN
LIKE
Details
50. Which format mask displays December 31st - 1999?
Surrogate
Business problems
Month ddth - yyyy
Orphan