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. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Any
DICT_COLUMNS
Details
Both MIN and MAX
2. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
999999.9999
2000
@ or START
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
3. _________________ relationships are always optional relationships.
Scalar
TO_CHAR function
Twice
Recursive
4. Self-joins are useful for performing comparisons and checking for ___________ in data.
Another null
DD-MON-YY
Inconsistencies
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
5. Explain what is found in the All Objects report folder in SQL Developer
Mathematical equations
DICT_COLUMNS
VALUES
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
6. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Combine
USER_ - ALL_ - DBA_ - and V$
999999.9999
User-defined reports
7. Joins involving multiple columns must always follow the ____________ relationship path.
Run scripts
Re-create
Primary key/foreign key
The indexed column is part of an expression. In this case - consider creating a function-based index instead
8. The ________ operator cannot compare against a list of values.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
USER_ - ALL_ - DBA_ - and V$
LIKE
Inconsistencies
9. What is Oracle's most popular index storage structure?
MODIFY
+
B-Tree Index
Has not changed the name
10. What is the name of the key automatically generated from a sequence?
Surrogate key
Surrogate
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Scalar
11. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Business problems
999999.9999
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.
Retrieve
12. The _______ operator determines common rows.
INTERSECT
**** 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
Scalar
99.99
13. 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.
INNER JOIN
NATURAL JOIN
FALSE
UNION operator
14. 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.
Testing functions
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.
Scalar
VALUES
15. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
A correct statement
Fractional seconds
Groups
RIGHT LEFT JOIN
16. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
USER_ - ALL_ - DBA_ - and V$
X
Testing functions
17. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Results
STORAGE
BETWEEN
Optional
18. Comparison operators can compare multiple _________________.
Inconsistencies
Any
SET clause of an UPDATE statement
Columns
19. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Mathematical equations
Equijoin
NATURAL JOIN
Recursive
20. Explain why constraints are used when building tables.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
21. How many characters can you have using the VARCHAR data type?
Crow's foot
4000
When the table is small (unless your business rules require you too)
DROP INDEX need_to_pass_i
22. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
ADD
B-Tree Index
Correlated
Export Data
23. The same function can be used ______ in a SELECT statement.
Actual column
Twice
2000
Business problems
24. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Combine
V$
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
FALSE
25. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Mathematical equations
BETWEEN
Scale
Another null
26. ____________ are useful for analyzing and exploring the relationships within your data
Precision
Multiple rows
LENGTH
Self-joins
27. UNION ALL does not sort - therefore it is less time consuming to use than the...
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.
All
Parent table
UNION operator
28. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Results
Combine
Both MIN and MAX
29. Match each of the SQL commands on the left with a verb from the list.
V$
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
INTERSECT
Scale
30. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
VALUES
Combine
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Running a script file
31. What is the main difference between the NOT EXISTS and the NOT IN operators?
SET clause of an UPDATE statement
Testing functions
Fractional seconds
The way NULL values are treated
32. You can pass parameters from the operating system when ___________ in SQl*Plus
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.
Running a script file
Optional
Run scripts
33. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Combine
GROUP BY
ANY
RUN SCRIPT
34. Explicit data type conversion is preferable to Oracle's...
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.
Implicit conversion
X
NATURAL JOIN
35. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
ALL_OBJECTS
**** 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
KEEP INDEX
GROUP BY
36. Write a solution that adds 20 minutes to a given date.
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
SELECT SYSDATE+1/96 - FROM dual
Results
Three
37. What does the following function return? SELECT LENGTH(NULL) - FROM dual
DROP INDEX need_to_pass_i
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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Null
38. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
999999.9999
Scale
Multiple rows
V$
39. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
COMMIT
Orphan
Fractional seconds
40. When column names on the tables are different - you use the ______ condition.
ON
KEEP INDEX
SYSDATE
Multiple rows
41. When you run a script in SQL*Plus you must give the...
Precision
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Committed
Location of the file
42. Which format mask displays December 31st - 1999?
Parent table
F12
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Month ddth - yyyy
43. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
SET clause of an UPDATE statement
MINUS
Common column value
44. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Has not changed the name
ROLLBACK
All
SELECT DISTINCT menu FROM restaurant
45. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
LIKE
Data
Combine
46. In a view you can give a column a different name than it has in the...
Parent table
Multiple rows
Details
Mathematical equations
47. Explain what a static data dictionary view is and how it is used
Equijoin
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
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.
Recursive
48. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Crow's foot
Default is 14; when you use the default - you repeat the heading every 14 rows.
Primary key/foreign key
49. Subqueries can return...
Self-joins
LENGTH
DROP INDEX need_to_pass_i
Multiple rows
50. To join four tables - you must have at least _____ join conditions.
UNION operator
Black
Three
UNION