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. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
User-defined reports
Combine
Data
DD-MON-YY
2. What is the data type you can use if you need an unlimited number of textual characters?
ANY
CLOB
SET clause of an UPDATE statement
Mathematical equations
3. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
BETWEEN
ON
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.
4. The term ____________ ___________ is used to express a join that satisfies the join condition.
SYSDATE
Rounded edges
Same
INNER JOIN
5. Explain how the SPOOL command is used and what program it can be used in.
Retrieve
Columns
DICT_COLUMNS
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
6. The ___________ operator tests whether a matching row cannot be found.
SELECT DISTINCT menu FROM restaurant
X
Mathematical equations
Correlated
7. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
All caps
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.
SELECT SYSDATE+1/96 - FROM dual
8. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
Crow's foot
Leading-edge
Black
9. UNION ALL does not sort - therefore it is less time consuming to use than the...
VALUES clause of an INSERT statement
UNION operator
Details
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.
10. A _________ subquery returns a single column with a single row
Scalar
Parent table
Correlated
Multiple rows
11. Users can only see changes made to a database once they have been...
DD-MON-YY
MINUS
Export Data
Committed
12. Which one of the following string functions tells you how many characters are in a string?
STORAGE
Results
LENGTH
Non-matching rows
13. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
999999.9999
SET clause of an UPDATE statement
X
Recursive
14. What is the first column of a composite index called?
Leading-edge
Same
Script
Scale
15. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
B-Tree Index
@ or START
Equijoin and identical column names
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
16. List the reasons that a subquery could not be unnested.
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
Fractional seconds
X
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
17. What is Oracle's most popular index storage structure?
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
Primary key/foreign key
When the table is small (unless your business rules require you too)
B-Tree Index
18. The ALTER SESSION statement can change the session's...
ON
Surrogate
Time zone
Combine
19. Queries that are found in parentheses are done first - just as in the order of operations when doing...
MODIFY
VALUES clause of an INSERT statement
Mathematical equations
COMMIT
20. Explain the steps needed to run a script in SQL Developer
Both MIN and MAX
4
BETWEEN
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.
21. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
RUN SCRIPT
Both MIN and MAX
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
22. You use the _________ keyword to add columns or constraints to a table.
Any
ADD
Precision
When the table is small (unless your business rules require you too)
23. What are the main components of a ROWID?
Null
Results
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.
Same
24. You can pass parameters from the operating system when ___________ in SQl*Plus
Export Data
Running a script file
Semicolon or forward slash
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
25. To join four tables - you must have at least _____ join conditions.
Three
Inconsistencies
The way NULL values are treated
The indexed column is part of an expression. In this case - consider creating a function-based index instead
26. 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.
Month ddth - yyyy
Combine
FALSE
Equijoin
27. The focus of the logical data model is _____________
Structured Query Language
Business problems
Optional
COMMIT
28. The RTRIM function is useful for eliminating ________ in a string.
Command returns the number of records returned by a query.
A correct statement
SELECT DISTINCT menu FROM restaurant
Extra spaces
29. A transaction is a...
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
+
Logical unit of work
BETWEEN
30. The __________ operator is inclusive of the two values specified.
BETWEEN
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
VALUES
Business problems
31. In SQL Developer field names and table names are shown in the color _______.
Twice
Re-create
Black
INTERSECT
32. What is the tab in SQL Developer where data dictionary view information can be found?
Mathematical equations
Orphan
Optional
Details
33. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Groups
Another null
MINUS
Null
34. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Groups
Implicit conversion
IN ANY ALL SOME
Crow's foot
35. 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.
RUN SCRIPT
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
RIGHT LEFT JOIN
36. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
2000
4
Actual column
Committed
37. List 4 aggregate functions
99.99
Self-joins
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Business problems
38. What is the most common DATE format found in SQL?
DD-MON-YY
VALUES clause of an INSERT statement
Columns
User-defined reports
39. Joins involving multiple columns must always follow the ____________ relationship path.
Time zone
Primary key/foreign key
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Black
40. The TRUNC function on a date without a format model truncates the timestamp to...
@ or START
12:00:00 A.M
Default is 14; when you use the default - you repeat the heading every 14 rows.
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
41. What is the keyboard shortcut for the ROLLBACK command?
Black
Structured Query Language
SYSDATE
F12
42. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
The indexed column is part of an expression. In this case - consider creating a function-based index instead
F12
43. How many characters can be stored in the CHAR column/field?
Crow's foot
The way NULL values are treated
4000
2000
44. Self-joins are useful for performing comparisons and checking for ___________ in data.
Command returns the number of records returned by a query.
Inconsistencies
ALL_OBJECTS
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
45. What is the maximum value for a column defined as NUMBER(4 -2)?
Same
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.
99.99
ADD
46. The ______ depicts the M of a 1:M relationship.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
47. Explain how Substitution Variables are used when writing scripts.
ADD
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.
Crow's foot
Any
48. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
Mathematical equations
Implicit conversion
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.
49. The ________ operator cannot compare against a list of values.
V$
LIKE
Correlated
Semicolon or forward slash
50. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
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.
SELECT DISTINCT menu FROM restaurant
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
CLOB