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. The COUNT function is useful for determining whether a table has...
ALL_OBJECTS
Committed
Another null
Data
2. List 4 aggregate functions
Columns
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Crow's foot
VALUES clause of an INSERT statement
3. 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
A correct statement
Implicit conversion
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
4. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
SELECT SYSDATE+1/96 - FROM dual
When the table is small (unless your business rules require you too)
SET clause of an UPDATE statement
Combine
5. The term ____________ ___________ is used to express a join that satisfies the join condition.
Surrogate
Inconsistencies
Export Data
INNER JOIN
6. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
Nested
Correlated
ON
7. How many characters can you have using the VARCHAR data type?
4000
KEEP INDEX
Common column value
MODIFY
8. The _____________ clause determines how rows are grouped.
Hide data
GROUP BY
VALUES
RUN SCRIPT
9. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
RUN SCRIPT
VALUES clause of an INSERT statement
X
Both MIN and MAX
10. The ROWID pseudocolumn is not an ________- but it acts like one.
VALUES
Actual column
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
Black
11. What is the data type you can use if you need an unlimited number of textual characters?
DD-MON-YY
CLOB
Columns
4000
12. 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.
V$
FALSE
Details
Precision
13. The purpose of the HAVING clause is to eliminate___________.
Testing functions
Crow's foot
B-Tree Index
Groups
14. What are the main components of a ROWID?
DROP INDEX need_to_pass_i
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.
Rounded edges
All
15. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Rounded edges
MINUS
IN ANY ALL SOME
Equijoin
16. Explain how Substitution Variables are used when writing scripts.
UTC
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.
Another null
17. Dynamic views begin with a ___________.
Precision
Business problems
V$
LENGTH
18. A calculation with a null always yields...
X
SUM
Another null
BETWEEN
19. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Hide data
FALSE
LIKE
Fractional seconds
20. Queries that are found in parentheses are done first - just as in the order of operations when doing...
F12
Script
Mathematical equations
LIKE
21. List the steps performed by a correlated subquery.
X
**** 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
VALUES clause of an INSERT statement
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.
22. List 6 Table-Related Menu Choices
Non-matching rows
Precision
INNER JOIN
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
23. The same function can be used ______ in a SELECT statement.
Equijoin
Twice
VALUES
Implicit conversion
24. What do views do that makes them so useful for security?
Static or dynamic
Parent table
Hide data
Leading-edge
25. What is the name of the key automatically generated from a sequence?
INNER JOIN
Static or dynamic
Orphan
Surrogate key
26. What is the first column of a composite index called?
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Asterisk
Leading-edge
Nested
27. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
User-defined reports
FALSE
SELECT SYSDATE+1/96 - FROM dual
28. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
2000
When the table is small (unless your business rules require you too)
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
29. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Default is 14; when you use the default - you repeat the heading every 14 rows.
ROLLBACK
RUN SCRIPT
TO_CHAR function
30. You can use the ________________ to subtract months from a given date.
Inconsistencies
2000
ADD_MONTHS function
Equijoin and correlated subquery
31. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Asterisk
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
X
Combine
32. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Any
UNION
BETWEEN
SELECT SYSDATE+1/96 - FROM dual
33. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
USER_ - ALL_ - DBA_ - and V$
Export Data
VALUES clause of an INSERT statement
MINUS
34. The RTRIM function is useful for eliminating ________ in a string.
Extra spaces
ANY
SELECT SYSDATE+1/96 - FROM dual
CLOB
35. PAGESIZE
DICTIONARY
Default is 14; when you use the default - you repeat the heading every 14 rows.
4000
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
36. SELECT * FROM instructor ORDER BY phone
ADD
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.
A correct statement
FALSE
37. ____________ are useful for analyzing and exploring the relationships within your data
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 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
Self-joins
ADD_MONTHS function
38. Joins involving multiple columns must always follow the ____________ relationship path.
DICT_COLUMNS
Asterisk
Primary key/foreign key
4000
39. Explain what a static data dictionary view is and how it is used
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Asterisk
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.
Default is 14; when you use the default - you repeat the heading every 14 rows.
40. When you run a script in SQL*Plus you must give the...
Another null
SUM
Location of the file
Data
41. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Semicolon or forward slash
Surrogate
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
42. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Run scripts
Equijoin and correlated subquery
MODIFY
Details
43. LINESIZE
Logical unit of work
Common column value
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
KEEP INDEX
44. The using clause of the ANSI join syntax always assumes an...
Location of the file
ALL_OBJECTS
Running a script file
Equijoin and identical column names
45. SQL*Plus is used more than SQL Developer when you need to...
INTERSECT
SET clause of an UPDATE statement
Run scripts
Non-matching rows
46. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
V$
Optional
Logical unit of work
47. SELECT LIST of a subquery in an INSERT statement
B-Tree Index
SET clause of an UPDATE statement
Primary key/foreign key
X
48. NUMBER functions can be...
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.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Command returns the number of records returned by a query.
Nested
49. What is Oracle's most popular index storage structure?
RUN SCRIPT
Export Data
Has not changed the name
B-Tree Index
50. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
X
Three
Twice