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 focus of the logical data model is _____________
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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Business problems
2. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
MINUS
Structured Query Language
3. NUMBER functions can be...
TO_CHAR function
Implicit conversion
Twice
Nested
4. Users can only see changes made to a database once they have been...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
KEEP INDEX
Both MIN and MAX
Committed
5. The RTRIM function is useful for eliminating ________ in a string.
DESC dict;
VALUES
Self-joins
Extra spaces
6. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Scale
Rounded edges
DECODE
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
7. Write a statement for SQL*Plus that shows the dictionary.
NATURAL JOIN
DESC dict;
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.
When the table is small (unless your business rules require you too)
8. What is the maximum value for a column defined as NUMBER(4 -2)?
Location of the file
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.
99.99
LIKE
9. Comparison operators can compare multiple _________________.
Columns
12:00:00 A.M
999999.9999
INTERSECT
10. Write a statement that drops the index need_to_pass_i
LIKE
X
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.
DROP INDEX need_to_pass_i
11. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
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
STORAGE
MINUS
4000
12. In SQL Developer field names and table names are shown in the color _______.
Both MIN and MAX
STORAGE
Precision
Black
13. SQL*Plus is used more than SQL Developer when you need to...
Default is 14; when you use the default - you repeat the heading every 14 rows.
ON
Orphan
Run scripts
14. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
UTC
Both MIN and MAX
CLOB
Null
15. Joins involving multiple columns must always follow the ____________ relationship path.
Both MIN and MAX
SELECT SYSDATE+1/96 - FROM dual
Primary key/foreign key
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.
16. Which operator is most commonly used?
Non-matching rows
Crow's foot
UNION
+
17. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
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.
99.99
RUN SCRIPT
Correlated
18. The COUNT function uses the __________ wildcard.
ROLLBACK
Asterisk
Rounded edges
Scalar
19. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Twice
Scale
NATURAL JOIN
20. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
MODIFY
Combine
Nested
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
21. ____________ are useful for analyzing and exploring the relationships within your data
Data
Groups
Self-joins
USER_ - ALL_ - DBA_ - and V$
22. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
Details
Parent table
Logical unit of work
23. Explain what a static data dictionary view is and how it is used
Inconsistencies
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.
Primary key/foreign key
Extra spaces
24. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
+
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
4000
X
25. What do views do that makes them so useful for security?
Crow's foot
Hide data
Three
Data
26. It is considered good form to put all SQL commands in...
All caps
USER_ - ALL_ - DBA_ - and V$
Structured Query Language
Precision
27. Dynamic views begin with a ___________.
Null
User-defined reports
V$
MINUS
28. The _______ function adds values together for a group of rows.
SUM
Semicolon or forward slash
Inconsistencies
Script
29. The _______ operator determines common rows.
INTERSECT
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Export Data
Asterisk
30. The _____________ clause determines how rows are grouped.
ALL_OBJECTS
GROUP BY
Results
Surrogate
31. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
X
Precision
X
Correlated
32. Returns rows if the condition is true for all the values in the list
Groups
All
TO_CHAR function
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.
33. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
@ or START
Optional
4
Hide data
34. To join four tables - you must have at least _____ join conditions.
A correct statement
UNION operator
Three
Both MIN and MAX
35. List the reasons that a subquery could not be unnested.
Combine
X
A correct statement
VALUES clause of an INSERT statement
36. 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
37. When you run a script in SQL*Plus you must give the...
Logical unit of work
Location of the file
**** 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
DECODE
38. 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?
12:00:00 A.M
UNION
F12
DICTIONARY
39. You use the __________ keyword to change characteristics of a column.
Equijoin and identical column names
V$
MODIFY
Correlated
40. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
BETWEEN
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.
FALSE
Month ddth - yyyy
41. __________________ inserts the current date and time.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Details
BETWEEN
SYSDATE
42. Write a solution that adds 20 minutes to a given date.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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.
Combine
SELECT SYSDATE+1/96 - FROM dual
43. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Columns
Multiple rows
RUN SCRIPT
MINUS
44. SELECT * FROM instructor ORDER BY phone
Asterisk
DD-MON-YY
SYSDATE
A correct statement
45. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
ON
DICT_COLUMNS
Equijoin
X
46. List the steps performed by a correlated subquery.
Twice
**** 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
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
USER_ - ALL_ - DBA_ - and V$
47. To equijoin a table with another table involves matching the...
Actual column
Running a script file
Common column value
Asterisk
48. Which format mask displays December 31st - 1999?
Command returns the number of records returned by a query.
Rounded edges
Month ddth - yyyy
USER_ - ALL_ - DBA_ - and V$
49. _________________ relationships are always optional relationships.
Recursive
LIKE
99.99
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
50. What is the tab in SQL Developer where data dictionary view information can be found?
RENAME just_two_more_weeks TO finally_i
Details
Inconsistencies
99.99