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. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
VALUES
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
4000
2. List the reasons that a subquery could not be unnested.
Implicit conversion
Logical unit of work
X
UNION
3. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
RIGHT LEFT JOIN
Groups
NATURAL JOIN
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
4. The _______ function lets you perform if-then-else functionality with the SQL language.
Null
SELECT SYSDATE+1/96 - FROM dual
DECODE
A correct statement
5. What is Oracle's most popular index storage structure?
Same
SELECT SYSDATE+1/96 - FROM dual
B-Tree Index
Equijoin
6. Checks whether any value in the list makes the condition true.
User-defined reports
Any
V$
STORAGE
7. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
999999.9999
ON
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
8. The __________ operator is inclusive of the two values specified.
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.
VALUES
TO_CHAR function
BETWEEN
9. Users can only see changes made to a database once they have been...
Retrieve
Committed
BETWEEN
Extra spaces
10. Returns rows if the condition is true for all the values in the list
BETWEEN
IN ANY ALL SOME
Columns
All
11. Which format mask displays December 31st - 1999?
GROUP BY
UNION
Month ddth - yyyy
Non-matching rows
12. When column names on the tables are different - you use the ______ condition.
X
ON
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
All caps
13. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
COMMIT
Committed
LIKE
14. Explain how the SPOOL command is used and what program it can be used in.
4000
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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
FALSE
15. The ________ operator cannot compare against a list of values.
Leading-edge
Groups
DECODE
LIKE
16. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Command returns the number of records returned by a query.
Results
ALL_OBJECTS
Null
17. When you have issued a DELETE command - you can still ________ those rows and restore the information.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
DROP INDEX need_to_pass_i
Common column value
Retrieve
18. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
UTC
Fractional seconds
NATURAL JOIN
19. The _______ function adds values together for a group of rows.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
@ or START
Surrogate key
SUM
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. Oracle uses the outer join operator to indicate that nulls are shown for...
Crow's foot
Non-matching rows
Any
SUM
22. Subqueries can return...
Equijoin and identical column names
Actual column
Orphan
Multiple rows
23. What is the first column of a composite index called?
ADD
Month ddth - yyyy
Leading-edge
F12
24. To join four tables - you must have at least _____ join conditions.
Correlated
FALSE
Three
Data
25. Which operator is most commonly used?
ON
UNION
ADD_MONTHS function
ADD
26. The focus of the logical data model is _____________
RENAME just_two_more_weeks TO finally_i
INTERSECT
Business problems
ADD_MONTHS function
27. Write a statement for SQL*Plus that shows the dictionary.
Equijoin
Multiple rows
DESC dict;
RENAME just_two_more_weeks TO finally_i
28. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
Orphan
Hide data
2000
29. How many characters can be stored in the CHAR column/field?
X
Script
Another null
2000
30. Dynamic views begin with a ___________.
Retrieve
Columns
Any
V$
31. 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.
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
Hide data
Semicolon or forward slash
FALSE
32. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Hide data
**** 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
Surrogate key
4
33. You can use the ________________ to subtract months from a given date.
ADD_MONTHS function
Common column value
UNION
Retrieve
34. FEEDBACK
ON
Command returns the number of records returned by a query.
ADD_MONTHS function
STORAGE
35. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Rounded edges
Surrogate
BETWEEN
Orphan
36. The COUNT function uses the __________ wildcard.
LIKE
Parent table
Asterisk
SET clause of an UPDATE statement
37. Comparison operators can compare multiple _________________.
VALUES clause of an INSERT statement
Testing functions
Columns
Any
38. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Rounded edges
Equijoin
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
GROUP BY
39. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Location of the file
FALSE
Actual column
VALUES clause of an INSERT statement
40. In SQL Developer field names and table names are shown in the color _______.
Command returns the number of records returned by a query.
Black
Export Data
UNION
41. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Inconsistencies
X
Export Data
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
42. Write a solution that adds 20 minutes to a given date.
IN ANY ALL SOME
Surrogate key
SELECT DISTINCT menu FROM restaurant
SELECT SYSDATE+1/96 - FROM dual
43. The same function can be used ______ in a SELECT statement.
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
Twice
Precision
The way NULL values are treated
44. It is considered good form to put all SQL commands in...
Command returns the number of records returned by a query.
All
All caps
99.99
45. The query retrieves more than 5 to 15 percent of the rows
Committed
Rounded edges
The indexed column is part of an expression. In this case - consider creating a function-based index instead
TO_CHAR function
46. To equijoin a table with another table involves matching the...
Multiple rows
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.
Common column value
B-Tree Index
47. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Correlated
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.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
MINUS
48. The ROWID pseudocolumn is not an ________- but it acts like one.
Recursive
Black
Actual column
RENAME just_two_more_weeks TO finally_i
49. When you run a script in SQL*Plus you must give the...
Combine
Location of the file
VALUES
Scalar
50. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.
SYSDATE
SELECT DISTINCT menu FROM restaurant
Committed
Has not changed the name