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. You use the __________ keyword to change characteristics of a column.
MODIFY
X
Details
Inconsistencies
2. Self-joins are useful for performing comparisons and checking for ___________ in data.
DICTIONARY
Precision
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Inconsistencies
3. Explain what is found in the All Objects report folder in SQL Developer
Any
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Committed
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.
4. How many characters can you have using the VARCHAR data type?
4000
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
Committed
SELECT SYSDATE+1/96 - FROM dual
5. When column names on the tables are different - you use the ______ condition.
Optional
2000
BETWEEN
ON
6. List the different types of data dictionary views.
Extra spaces
USER_ - ALL_ - DBA_ - and V$
DESC dict;
The indexed column is part of an expression. In this case - consider creating a function-based index instead
7. Which one of the following string functions tells you how many characters are in a string?
LENGTH
Asterisk
Hide data
All
8. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
ADD
Static or dynamic
FALSE
SELECT DISTINCT menu FROM restaurant
9. The using clause of the ANSI join syntax always assumes an...
Equijoin and identical column names
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Null
Default is 14; when you use the default - you repeat the heading every 14 rows.
10. LINESIZE
Logical unit of work
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Time zone
FALSE
11. What do views do that makes them so useful for security?
Hide data
Implicit conversion
2000
Asterisk
12. _________ rows are not allowed in the relational model.
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
CLOB
Orphan
A correct statement
13. Write a solution that adds 20 minutes to a given date.
4000
Crow's foot
SELECT SYSDATE+1/96 - FROM dual
Precision
14. You use the _________ keyword to add columns or constraints to a table.
ADD
Mathematical equations
DD-MON-YY
BETWEEN
15. The ALTER SESSION statement can change the session's...
Equijoin and identical column names
Time zone
Re-create
ALL_OBJECTS
16. The DUAL table can be used for...
Static or dynamic
99.99
Testing functions
USER_ - ALL_ - DBA_ - and V$
17. List 6 Table-Related Menu Choices
Surrogate key
Actual column
Primary key/foreign key
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
18. Users can only see changes made to a database once they have been...
ADD
Surrogate key
Committed
BETWEEN
19. Explain why constraints are used when building tables.
20. Write a statement for SQL*Plus that shows the dictionary.
Rounded edges
DESC dict;
Details
Hide data
21. The same function can be used ______ in a SELECT statement.
MINUS
LENGTH
UNION operator
Twice
22. You can use the ________________ to subtract months from a given date.
RIGHT LEFT JOIN
SELECT SYSDATE+1/96 - FROM dual
ADD_MONTHS function
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
23. Explain how the SPOOL command is used and what program it can be used in.
Black
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
ANY
Parent table
24. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Black
X
Correlated
RIGHT LEFT JOIN
25. Joins involving multiple columns must always follow the ____________ relationship path.
Optional
Columns
Precision
Primary key/foreign key
26. The key that most database designers prefer and is chosen by the system is the _____________ key.
Correlated
Surrogate
Results
Asterisk
27. The purpose of the HAVING clause is to eliminate___________.
Groups
LIKE
UTC
2000
28. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
UNION
+
ALL_OBJECTS
Committed
29. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
The way NULL values are treated
Committed
Columns
30. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Run scripts
+
4
ADD_MONTHS function
31. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Three
Script
Semicolon or forward slash
Leading-edge
32. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
ROLLBACK
DD-MON-YY
Export Data
33. The COUNT function is useful for determining whether a table has...
Surrogate
Semicolon or forward slash
UNION operator
Data
34. The ______ operator compares a list of values for equivalency
Null
A correct statement
ANY
Scale
35. How many characters can be stored in the CHAR column/field?
12:00:00 A.M
Any
Run scripts
2000
36. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
X
Export Data
DICTIONARY
37. Which operator is most commonly used?
Implicit conversion
F12
CLOB
UNION
38. What is the name of the key automatically generated from a sequence?
Orphan
User-defined reports
Surrogate key
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
39. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
Script
Testing functions
Null
40. To restart a sequence at a lower number - you can drop and ________ the sequence.
Another null
**** 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
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
41. The ______ depicts the M of a 1:M relationship.
42. What is the tab in SQL Developer where data dictionary view information can be found?
Self-joins
Details
Implicit conversion
Multiple rows
43. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
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
ALL_OBJECTS
Precision
RUN SCRIPT
44. List the steps performed by a correlated subquery.
Retrieve
Common column value
**** 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
SUM
45. Write the syntax to rename index just_two_more_weeks_i to finally_i
X
Mathematical equations
All
RENAME just_two_more_weeks TO finally_i
46. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
SYSDATE
NATURAL JOIN
SUM
USER_ - ALL_ - DBA_ - and V$
47. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
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
Scale
IN ANY ALL SOME
Command returns the number of records returned by a query.
48. The ___________ operator tests whether a matching row cannot be found.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
DICT_COLUMNS
X
UNION
49. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
The way NULL values are treated
SUM
SYSDATE
50. FEEDBACK
Leading-edge
UNION
F12
Command returns the number of records returned by a query.