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. Checks whether any value in the list makes the condition true.
ADD_MONTHS function
Data
Any
Extra spaces
2. SELECT * FROM instructor ORDER BY phone
Results
Implicit conversion
VALUES
A correct statement
3. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
ADD_MONTHS function
Time zone
The way NULL values are treated
4. Self-joins are useful for performing comparisons and checking for ___________ in data.
X
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
Re-create
5. To join four tables - you must have at least _____ join conditions.
Three
Time zone
@ or START
Multiple rows
6. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
MINUS
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.
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
7. The focus of the logical data model is _____________
Hide data
Extra spaces
Business problems
99.99
8. The COUNT function uses the __________ wildcard.
Three
Asterisk
**** 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
Results
9. You can pass parameters from the operating system when ___________ in SQl*Plus
Correlated
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.
Running a script file
V$
10. Explain what a static data dictionary view is and how it is used
Semicolon or forward slash
Implicit conversion
Non-matching rows
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.
11. What is the name of the key automatically generated from a sequence?
SELECT DISTINCT menu FROM restaurant
TO_CHAR function
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.
Surrogate key
12. The ___________ operator tests whether a matching row cannot be found.
A correct statement
BETWEEN
RUN SCRIPT
X
13. LINESIZE
All
Optional
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
SELECT DISTINCT menu FROM restaurant
14. The _______ operator determines common rows.
Export Data
Common column value
INTERSECT
RUN SCRIPT
15. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
X
Results
Equijoin
16. In SQL Developer field names and table names are shown in the color _______.
Scale
Parent table
Black
V$
17. The COUNT function is useful for determining whether a table has...
Equijoin and correlated subquery
The way NULL values are treated
Data
Surrogate
18. Another name for a data dictionary view is __________________ or _________________.
Static or dynamic
2000
DESC dict;
Data
19. The RTRIM function is useful for eliminating ________ in a string.
Optional
LENGTH
Extra spaces
RUN SCRIPT
20. What is Oracle's most popular index storage structure?
Another null
B-Tree Index
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.
Script
21. The time zone displacement value indicates the time difference from _______.
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
UTC
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
UNION
22. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
Scalar
Self-joins
DECODE
23. What is the tab in SQL Developer where data dictionary view information can be found?
Details
Logical unit of work
ALL_OBJECTS
The way NULL values are treated
24. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
DECODE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Structured Query Language
Equijoin and correlated subquery
25. What does SQL stand for?
ANSI
DD-MON-YY
Recursive
Structured Query Language
26. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
ON
Surrogate
@ or START
Both MIN and MAX
27. The DUAL table can be used for...
Testing functions
Inconsistencies
Same
INTERSECT
28. To restart a sequence at a lower number - you can drop and ________ the sequence.
4000
Re-create
Optional
Equijoin and identical column names
29. _________ rows are not allowed in the relational model.
Orphan
INTERSECT
All
Extra spaces
30. The ______ operator compares a list of values for equivalency
Committed
Scale
ANY
COMMIT
31. What do views do that makes them so useful for security?
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.
**** 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
Hide data
RUN SCRIPT
32. Write a statement for SQL*Plus that shows the dictionary.
B-Tree Index
INTERSECT
DESC dict;
MINUS
33. When you run a script in SQL*Plus you must give the...
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
DICT_COLUMNS
Location of the file
99.99
34. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
Twice
MINUS
SELECT SYSDATE+1/96 - FROM dual
35. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
DECODE
Script
Correlated
DD-MON-YY
36. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
COMMIT
Correlated
Leading-edge
Hide data
37. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Orphan
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
ANSI
38. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
RUN SCRIPT
39. Which format mask displays December 31st - 1999?
DROP INDEX need_to_pass_i
All
Month ddth - yyyy
Actual column
40. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Leading-edge
Mathematical equations
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.
Location of the file
41. Comparison operators can compare multiple _________________.
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
BETWEEN
SYSDATE
Columns
42. The __________ operator is inclusive of the two values specified.
UNION
Self-joins
BETWEEN
Precision
43. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Orphan
Implicit conversion
FALSE
Same
44. When you have issued a DELETE command - you can still ________ those rows and restore the information.
SUM
LENGTH
Retrieve
Any
45. Explain in detail the impact of INDEXES and how they are used by Oracle.
STORAGE
X
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
Both MIN and MAX
46. 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
47. Checks whether any value in the list makes the condition true.
Any
RUN SCRIPT
RIGHT LEFT JOIN
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.
48. The ROWID pseudocolumn is not an ________- but it acts like one.
DICTIONARY
Common column value
Actual column
LIKE
49. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
X
Groups
Combine
When the table is small (unless your business rules require you too)
50. SQL*Plus is used more than SQL Developer when you need to...
User-defined reports
Run scripts
Month ddth - yyyy
LENGTH