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. Which format mask displays December 31st - 1999?
All
ANY
ANSI
Month ddth - yyyy
2. A transaction is a...
Precision
DICTIONARY
Logical unit of work
SYSDATE
3. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
SET clause of an UPDATE statement
UNION
Re-create
4. 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.
STORAGE
Equijoin
VALUES
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
5. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Correlated
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
KEEP INDEX
Parent table
6. 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
DROP INDEX need_to_pass_i
A correct statement
UTC
7. LINESIZE
UNION operator
ALL_OBJECTS
SET clause of an UPDATE statement
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
8. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
UNION
Semicolon or forward slash
Command returns the number of records returned by a query.
B-Tree Index
9. A calculation with a null always yields...
Static or dynamic
Another null
MINUS
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
10. The TRUNC function on a date without a format model truncates the timestamp to...
When the table is small (unless your business rules require you too)
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
12:00:00 A.M
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
11. List the steps performed by a correlated subquery.
**** 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
ADD_MONTHS function
UTC
MODIFY
12. _________________ relationships are always optional relationships.
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.
ANY
FALSE
Recursive
13. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
SELECT DISTINCT menu FROM restaurant
Logical unit of work
Semicolon or forward slash
14. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
X
Location of the file
Twice
15. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Results
Orphan
ROLLBACK
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.
16. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
BETWEEN
X
Data
Surrogate key
17. The time zone displacement value indicates the time difference from _______.
Surrogate key
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
UTC
STORAGE
18. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Combine
Script
Orphan
RUN SCRIPT
19. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
@ or START
Three
VALUES
Combine
20. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Mathematical equations
Scale
Extra spaces
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
21. Dynamic views begin with a ___________.
Committed
ADD
V$
Multiple rows
22. Explain the steps needed to run a script in SQL Developer
+
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.
BETWEEN
Committed
23. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
CLOB
MINUS
Twice
24. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Recursive
VALUES clause of an INSERT statement
CLOB
UTC
25. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
FALSE
Rounded edges
12:00:00 A.M
Scalar
26. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
IN ANY ALL SOME
Both MIN and MAX
FALSE
27. List the different types of data dictionary views.
VALUES clause of an INSERT statement
Has not changed the name
USER_ - ALL_ - DBA_ - and V$
ANY
28. What is the name of the view where you can find the collection of static and data dictionary tables and views - along with their descriptions?
UTC
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.
Three
DICTIONARY
29. __________________ inserts the current date and time.
999999.9999
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
SYSDATE
UNION
30. The ______ operator compares a list of values for equivalency
ANY
Three
Run scripts
CLOB
31. Explain in detail the impact of INDEXES and how they are used by Oracle.
The way NULL values are treated
SYSDATE
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
32. Write a solution that adds 20 minutes to a given date.
Semicolon or forward slash
DD-MON-YY
Combine
SELECT SYSDATE+1/96 - FROM dual
33. The COUNT function is useful for determining whether a table has...
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
Data
X
Equijoin and correlated subquery
34. It is considered good form to put all SQL commands in...
Precision
All caps
Scale
SELECT SYSDATE+1/96 - FROM dual
35. When you run a script in SQL*Plus you must give the...
SELECT DISTINCT menu FROM restaurant
Location of the file
Has not changed the name
Data
36. List 6 Table-Related Menu Choices
Committed
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Optional
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
37. What do views do that makes them so useful for security?
**** 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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Hide data
Implicit conversion
38. _________ rows are not allowed in the relational model.
NATURAL JOIN
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Orphan
Common column value
39. Another name for a data dictionary view is __________________ or _________________.
ALL_OBJECTS
Any
Export Data
Static or dynamic
40. 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.
BETWEEN
@ or START
Has not changed the name
Any
41. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
NATURAL JOIN
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
The way NULL values are treated
42. In a view you can give a column a different name than it has in the...
COMMIT
Parent table
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Another null
43. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
DROP INDEX need_to_pass_i
MODIFY
Location of the file
44. You can pass parameters from the operating system when ___________ in SQl*Plus
Multiple rows
Another null
Running a script file
SET clause of an UPDATE statement
45. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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
Default is 14; when you use the default - you repeat the heading every 14 rows.
BETWEEN
Surrogate
46. The _______ operator determines common rows.
INTERSECT
Re-create
12:00:00 A.M
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
47. Subqueries can return...
DICT_COLUMNS
Static or dynamic
ANY
Multiple rows
48. Explain how the SPOOL command is used and what program it can be used in.
INNER JOIN
SET clause of an UPDATE statement
999999.9999
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
49. What is the tab in SQL Developer where data dictionary view information can be found?
Details
NATURAL JOIN
B-Tree Index
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
50. Comparison operators can compare multiple _________________.
ADD_MONTHS function
X
Columns
SELECT SYSDATE+1/96 - FROM dual