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. To restart a sequence at a lower number - you can drop and ________ the sequence.
X
Re-create
@ or START
Any
2. The time zone displacement value indicates the time difference from _______.
UTC
99.99
2000
GROUP BY
3. List the steps performed by a correlated subquery.
Scale
Both MIN and MAX
**** 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
Equijoin
4. Which operator is most commonly used?
UNION
VALUES clause of an INSERT statement
KEEP INDEX
SELECT SYSDATE+1/96 - FROM dual
5. The _______ function lets you perform if-then-else functionality with the SQL language.
RIGHT LEFT JOIN
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.
DECODE
Columns
6. Write a statement for SQL*Plus that shows the dictionary.
Both MIN and MAX
+
Correlated
DESC dict;
7. A transaction is a...
User-defined reports
Logical unit of work
Scale
CLOB
8. Write a solution that adds 20 minutes to a given date.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
SELECT SYSDATE+1/96 - FROM dual
The way NULL values are treated
Another null
9. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Testing functions
SET clause of an UPDATE statement
Self-joins
X
10. Joins involving multiple columns must always follow the ____________ relationship path.
GROUP BY
Primary key/foreign key
The way NULL values are treated
Fractional seconds
11. Converting a text literal to DATE format requires the use of the...
Surrogate key
TO_CHAR function
Leading-edge
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
12. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
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.
ALL_OBJECTS
The way NULL values are treated
DROP INDEX need_to_pass_i
13. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
RENAME just_two_more_weeks TO finally_i
NATURAL JOIN
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
14. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
4
ROLLBACK
USER_ - ALL_ - DBA_ - and V$
15. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Multiple rows
DD-MON-YY
Precision
GROUP BY
16. What is the first column of a composite index called?
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.
Parent table
Has not changed the name
17. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
DICTIONARY
ALL_OBJECTS
4
Surrogate key
18. What is the tab in SQL Developer where data dictionary view information can be found?
Details
Export Data
DECODE
X
19. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
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
Surrogate
Same
4
20. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
Crow's foot
SET clause of an UPDATE statement
Business problems
21. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
VALUES
User-defined reports
Surrogate key
SELECT DISTINCT menu FROM restaurant
22. When column names on the tables are different - you use the ______ condition.
Scalar
Surrogate key
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
ON
23. Comparison operators can compare multiple _________________.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
DD-MON-YY
X
Columns
24. The __________ operator is inclusive of the two values specified.
RUN SCRIPT
ANSI
4
BETWEEN
25. List the different types of data dictionary views.
Precision
USER_ - ALL_ - DBA_ - and V$
99.99
ON
26. The TRUNC function on a date without a format model truncates the timestamp to...
99.99
12:00:00 A.M
X
UNION
27. The COUNT function is useful for determining whether a table has...
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.
Data
UNION operator
Both MIN and MAX
28. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Implicit conversion
ROLLBACK
Inconsistencies
Asterisk
29. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Time zone
Retrieve
RUN SCRIPT
30. Write a statement that drops the index need_to_pass_i
Primary key/foreign key
DROP INDEX need_to_pass_i
2000
When the table is small (unless your business rules require you too)
31. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
V$
X
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
Script
32. The COUNT function uses the __________ wildcard.
When the table is small (unless your business rules require you too)
Asterisk
DICT_COLUMNS
X
33. List 4 aggregate functions
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Testing functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Fractional seconds
34. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
Testing functions
FALSE
4000
35. The ALTER SESSION statement can change the session's...
Time zone
Primary key/foreign key
Surrogate key
Inconsistencies
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 ____________
Any
Equijoin and correlated subquery
Twice
All
37. You use the __________ keyword to change characteristics of a column.
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
V$
SUM
38. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
MINUS
KEEP INDEX
Asterisk
DICT_COLUMNS
39. NUMBER functions can be...
VALUES clause of an INSERT statement
Nested
IN ANY ALL SOME
Re-create
40. 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.
Testing functions
Crow's foot
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.
41. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Committed
TO_CHAR function
Same
@ or START
42. Match each of the SQL commands on the left with a verb from the list.
Surrogate
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Rounded edges
43. Users can only see changes made to a database once they have been...
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
Committed
Default is 14; when you use the default - you repeat the heading every 14 rows.
SELECT SYSDATE+1/96 - FROM dual
44. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
99.99
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.
STORAGE
Retrieve
45. When you run a script in SQL*Plus you must give the...
Common column value
LENGTH
SELECT DISTINCT menu FROM restaurant
Location of the file
46. SELECT * FROM instructor ORDER BY phone
Results
A correct statement
SYSDATE
Groups
47. To equijoin a table with another table involves matching the...
Common column value
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
4000
Month ddth - yyyy
48. 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?
ALL_OBJECTS
Run scripts
Running a script file
DICTIONARY
49. __________________ inserts the current date and time.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
SYSDATE
Structured Query Language
Equijoin and identical column names
50. The ROWID pseudocolumn is not an ________- but it acts like one.
Month ddth - yyyy
Orphan
ADD
Actual column