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. Explain how Substitution Variables are used when writing scripts.
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.
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.
2. NUMBER functions can be...
Mathematical equations
Nested
RUN SCRIPT
UNION operator
3. What is the main difference between the NOT EXISTS and the NOT IN operators?
Surrogate key
The way NULL values are treated
ANY
Re-create
4. In a view you can give a column a different name than it has in the...
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Parent table
X
Retrieve
5. Comparison operators can compare multiple _________________.
Data
Columns
Retrieve
X
6. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
NATURAL JOIN
Command returns the number of records returned by a query.
ROLLBACK
DICTIONARY
7. LINESIZE
Equijoin and correlated subquery
Logical unit of work
RUN SCRIPT
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
8. You can pass parameters from the operating system when ___________ in SQl*Plus
Default is 14; when you use the default - you repeat the heading every 14 rows.
Running a script file
Committed
Crow's foot
9. FEEDBACK
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
VALUES
Data
Command returns the number of records returned by a query.
10. How many characters can you have using the VARCHAR data type?
Re-create
4000
4
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
11. What is the most common DATE format found in SQL?
UNION operator
X
Another null
DD-MON-YY
12. A join across three tables can be expressed with the ________ join syntax.
ANY
Rounded edges
ANSI
Self-joins
13. 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
14. The _______ function lets you perform if-then-else functionality with the SQL language.
Month ddth - yyyy
LIKE
DECODE
DESC dict;
15. Oracle uses the outer join operator to indicate that nulls are shown for...
Nested
Non-matching rows
RENAME just_two_more_weeks TO finally_i
User-defined reports
16. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Hide data
DESC dict;
+
Another null
17. Explain the steps needed to run a script 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.
Committed
V$
IN ANY ALL SOME
18. It is considered good form to put all SQL commands in...
Combine
F12
Common column value
All caps
19. Write a statement that drops the index need_to_pass_i
Optional
Export Data
DROP INDEX need_to_pass_i
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.
20. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Equijoin and correlated subquery
Data
Combine
2000
21. 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
22. _________ rows are not allowed in the relational model.
Orphan
Logical unit of work
BETWEEN
FALSE
23. The query retrieves more than 5 to 15 percent of the rows
Structured Query Language
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
STORAGE
The indexed column is part of an expression. In this case - consider creating a function-based index instead
24. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
2000
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Leading-edge
25. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Black
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.
Script
26. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
Equijoin and correlated subquery
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
Equijoin
27. What is the first column of a composite index called?
Leading-edge
Committed
Inconsistencies
ANY
28. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Run scripts
MODIFY
Logical unit of work
FALSE
29. Users can only see changes made to a database once they have been...
X
Has not changed the name
Committed
V$
30. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Leading-edge
Surrogate
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Rounded edges
31. Explain what a static data dictionary view is and how it is used
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.
ON
Testing functions
Results
32. Explain in detail the impact of INDEXES and how they are used by Oracle.
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 way NULL values are treated
SET clause of an UPDATE statement
Null
33. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Structured Query Language
Surrogate key
UNION
4
34. UNION ALL does not sort - therefore it is less time consuming to use than the...
DD-MON-YY
Three
UNION operator
Twice
35. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
DICTIONARY
IN ANY ALL SOME
STORAGE
12:00:00 A.M
36. The same function can be used ______ in a SELECT statement.
Re-create
Twice
LIKE
COMMIT
37. 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
38. The ______ operator compares a list of values for equivalency
Data
Surrogate
ANY
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
39. What is the tab in SQL Developer where data dictionary view information can be found?
Details
DICTIONARY
999999.9999
RUN SCRIPT
40. The ____________ command makes changes permanent.
TO_CHAR function
COMMIT
When the table is small (unless your business rules require you too)
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
41. Match each of the SQL commands on the left with a verb from the list.
IN ANY ALL SOME
INNER JOIN
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Multiple rows
42. 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?
Scalar
X
Time zone
DICTIONARY
43. 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.
Crow's foot
Has not changed the name
LENGTH
DD-MON-YY
44. 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.
Crow's foot
FALSE
ADD_MONTHS function
SELECT DISTINCT menu FROM restaurant
45. In SQL Developer field names and table names are shown in the color _______.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Black
4000
FALSE
46. Subqueries can return...
Implicit conversion
TO_CHAR function
Multiple rows
Time zone
47. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
UTC
LIKE
Self-joins
48. Which operator is most commonly used?
Scale
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
Default is 14; when you use the default - you repeat the heading every 14 rows.
UNION
49. When is it not a good idea to use an index?
Self-joins
ON
When the table is small (unless your business rules require you too)
Has not changed the name
50. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
A correct statement
Mathematical equations
MINUS
FALSE