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.
@ or START
Multiple rows
DESC dict;
Combine
2. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
X
Another null
IN ANY ALL SOME
Details
3. When column names on the tables are different - you use the ______ condition.
LENGTH
LIKE
X
ON
4. What do views do that makes them so useful for security?
Hide data
Implicit conversion
Mathematical equations
2000
5. Oracle uses the outer join operator to indicate that nulls are shown for...
Equijoin and identical column names
Export Data
Non-matching rows
VALUES clause of an INSERT statement
6. The ______ operator compares a list of values for equivalency
CLOB
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.
ANY
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
7. To equijoin a table with another table involves matching the...
The way NULL values are treated
COMMIT
Common column value
Command returns the number of records returned by a query.
8. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Command returns the number of records returned by a query.
Semicolon or forward slash
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.
Recursive
9. LINESIZE
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Surrogate
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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
10. How many characters can be stored in the CHAR column/field?
2000
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
Recursive
ALL_OBJECTS
11. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Logical unit of work
Correlated
Equijoin
Any
12. Which operator is most commonly used?
Optional
Static or dynamic
UNION
IN ANY ALL SOME
13. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
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.
User-defined reports
Command returns the number of records returned by a query.
Results
14. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
V$
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Correlated
MINUS
15. The COUNT function is useful for determining whether a table has...
Data
Has not changed the name
Scale
Fractional seconds
16. The RTRIM function is useful for eliminating ________ in a string.
12:00:00 A.M
X
Optional
Extra spaces
17. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Same
Any
All caps
X
18. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
UNION
KEEP INDEX
Precision
19. __________________ inserts the current date and time.
SYSDATE
Same
STORAGE
Implicit conversion
20. The _______ function adds values together for a group of rows.
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 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.
ADD
SUM
21. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
DROP INDEX need_to_pass_i
INTERSECT
DECODE
22. PAGESIZE
Script
Default is 14; when you use the default - you repeat the heading every 14 rows.
Mathematical equations
**** 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
23. _________________ relationships are always optional relationships.
Inconsistencies
Three
DECODE
Recursive
24. Another name for a data dictionary view is __________________ or _________________.
Black
All
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
Static or dynamic
25. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
Hide data
Common column value
Data
26. The ___________ operator tests whether a matching row cannot be found.
V$
Self-joins
INTERSECT
X
27. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
MINUS
FALSE
Extra spaces
Running a script file
28. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Semicolon or forward slash
Export Data
STORAGE
ON
29. A _________ subquery returns a single column with a single row
Scalar
Month ddth - yyyy
A correct statement
DD-MON-YY
30. _________ rows are not allowed in the relational model.
Scale
Orphan
Null
SELECT DISTINCT menu FROM restaurant
31. The DUAL table can be used for...
Testing functions
ADD_MONTHS function
Committed
2000
32. What is the name of the key automatically generated from a sequence?
+
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.
Surrogate key
KEEP INDEX
33. What does the following function return? SELECT LENGTH(NULL) - FROM dual
SELECT SYSDATE+1/96 - FROM dual
RUN SCRIPT
Null
VALUES
34. The key that most database designers prefer and is chosen by the system is the _____________ key.
@ or START
Surrogate
Location of the file
CLOB
35. Users can only see changes made to a database once they have been...
X
Committed
All
Command returns the number of records returned by a query.
36. Explain what is found in the All Objects report folder in SQL Developer
Command returns the number of records returned by a query.
99.99
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Logical unit of work
37. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
All
RENAME just_two_more_weeks TO finally_i
Semicolon or forward slash
38. The TRUNC function on a date without a format model truncates the timestamp to...
Any
ADD_MONTHS function
12:00:00 A.M
B-Tree Index
39. What does SQL stand for?
Equijoin and identical column names
@ or START
SYSDATE
Structured Query Language
40. 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?
DICTIONARY
Same
Default is 14; when you use the default - you repeat the heading every 14 rows.
Common column value
41. The ________ operator cannot compare against a list of values.
RENAME just_two_more_weeks TO finally_i
BETWEEN
LIKE
Location of the file
42. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
The way NULL values are treated
ANY
DICT_COLUMNS
Business problems
43. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
All caps
Asterisk
Combine
44. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
TO_CHAR function
The way NULL values are treated
Export Data
45. Write the syntax to rename index just_two_more_weeks_i to finally_i
Business problems
RUN SCRIPT
RENAME just_two_more_weeks TO finally_i
FALSE
46. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
F12
Run scripts
Any
47. SQL*Plus is used more than SQL Developer when you need to...
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.
Run scripts
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
Crow's foot
48. The query retrieves more than 5 to 15 percent of the rows
Correlated
The indexed column is part of an expression. In this case - consider creating a function-based index instead
4
Recursive
49. You use the __________ keyword to change characteristics of a column.
DICTIONARY
Non-matching rows
**** 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
MODIFY
50. You can pass parameters from the operating system when ___________ in SQl*Plus
UNION
Nested
Running a script file
MINUS