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 same function can be used ______ in a SELECT statement.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
12:00:00 A.M
Twice
4
2. What is the maximum value for a column defined as NUMBER(4 -2)?
The way NULL values are treated
99.99
Three
VALUES
3. LINESIZE
The way NULL values are treated
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
DICT_COLUMNS
V$
4. NUMBER functions can be...
Nested
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Scalar
MODIFY
5. To restart a sequence at a lower number - you can drop and ________ the sequence.
KEEP INDEX
Re-create
UTC
DD-MON-YY
6. 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.
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.
A correct statement
Primary key/foreign key
VALUES
7. 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.
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
Inconsistencies
NATURAL JOIN
RIGHT LEFT JOIN
8. Converting a text literal to DATE format requires the use of the...
Script
TO_CHAR function
Details
User-defined reports
9. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
Retrieve
@ or START
Primary key/foreign key
10. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Surrogate
SUM
INTERSECT
VALUES clause of an INSERT statement
11. The ______ operator compares a list of values for equivalency
ADD_MONTHS function
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
Optional
ANY
12. What is the name of the view where you can find the collection of static and data dictionary tables and views - along with their descriptions?
X
DICTIONARY
Export Data
Three
13. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
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.
Another null
MODIFY
14. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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.
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
Asterisk
2000
15. It is considered good form to put all SQL commands in...
Inconsistencies
MINUS
DESC dict;
All caps
16. Write a statement for SQL*Plus that shows the dictionary.
STORAGE
DESC dict;
DECODE
Black
17. A transaction is a...
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.
Primary key/foreign key
Logical unit of work
Retrieve
18. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Equijoin
Results
Multiple rows
Nested
19. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Has not changed the name
Semicolon or forward slash
Data
Equijoin and correlated subquery
20. In SQL Developer field names and table names are shown in the color _______.
Asterisk
Black
SELECT SYSDATE+1/96 - FROM dual
Scalar
21. The __________ operator is inclusive of the two values specified.
Default is 14; when you use the default - you repeat the heading every 14 rows.
BETWEEN
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 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.
22. Explain what is found in the All Objects report folder in SQL Developer
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Inconsistencies
Has not changed the name
MODIFY
23. Oracle uses the outer join operator to indicate that nulls are shown for...
Surrogate
Non-matching rows
UTC
999999.9999
24. The _______ operator determines common rows.
Testing functions
Precision
INTERSECT
Fractional seconds
25. Explain the steps needed to run a script in SQL Developer
KEEP INDEX
Script
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.
Fractional seconds
26. Users can only see changes made to a database once they have been...
Common column value
Multiple rows
INTERSECT
Committed
27. 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
Committed
Default is 14; when you use the default - you repeat the heading every 14 rows.
Black
28. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
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.
RENAME just_two_more_weeks TO finally_i
Optional
Equijoin and identical column names
29. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Business problems
Equijoin
Crow's foot
4
30. PAGESIZE
Command returns the number of records returned by a query.
Default is 14; when you use the default - you repeat the heading every 14 rows.
4
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
31. You can pass parameters from the operating system when ___________ in SQl*Plus
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
NATURAL JOIN
Any
Running a script file
32. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Scalar
IN ANY ALL SOME
Black
+
33. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
When the table is small (unless your business rules require you too)
DD-MON-YY
Combine
34. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
SELECT DISTINCT menu FROM restaurant
Results
LENGTH
35. SQL*Plus is used more than SQL Developer when you need to...
Business problems
Run scripts
User-defined reports
Script
36. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
Mathematical equations
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.
USER_ - ALL_ - DBA_ - and V$
37. SELECT * FROM instructor ORDER BY phone
A correct statement
Inconsistencies
MINUS
Export Data
38. The COUNT function is useful for determining whether a table has...
KEEP INDEX
Data
Implicit conversion
User-defined reports
39. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
4
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
SELECT SYSDATE+1/96 - FROM dual
40. To join four tables - you must have at least _____ join conditions.
Three
All
X
B-Tree Index
41. Write the syntax to rename index just_two_more_weeks_i to finally_i
DD-MON-YY
Has not changed the name
Inconsistencies
RENAME just_two_more_weeks TO finally_i
42. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
DICTIONARY
FALSE
MINUS
Equijoin
43. A _________ subquery returns a single column with a single row
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
Equijoin and correlated subquery
SELECT DISTINCT menu FROM restaurant
Scalar
44. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. When you have issued a DELETE command - you can still ________ those rows and restore the information.
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
ON
Retrieve
UNION
46. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
All caps
SET clause of an UPDATE statement
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
SUM
47. How many characters can you have using the VARCHAR data type?
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
UTC
4000
Testing functions
48. 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.
Has not changed the name
Self-joins
Combine
Results
49. The COUNT function uses the __________ wildcard.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Time zone
Asterisk
BETWEEN
50. A join across three tables can be expressed with the ________ join syntax.
Precision
Equijoin
ANSI
BETWEEN