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. Write a statement for SQL*Plus that shows the dictionary.
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
DESC dict;
NATURAL JOIN
RIGHT LEFT JOIN
2. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
2000
Recursive
Columns
Equijoin
3. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Same
INTERSECT
X
DICT_COLUMNS
4. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Nested
SUM
Scale
Retrieve
5. ____________ are useful for analyzing and exploring the relationships within your data
Non-matching rows
A correct statement
Self-joins
SELECT DISTINCT menu FROM restaurant
6. What is the first column of a composite index called?
Leading-edge
Command returns the number of records returned by a query.
Month ddth - yyyy
LIKE
7. Explain how Substitution Variables are used when writing scripts.
Same
Structured Query Language
V$
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.
8. What does SQL stand for?
Structured Query Language
Asterisk
BETWEEN
UNION operator
9. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
DECODE
Has not changed the name
Both MIN and MAX
STORAGE
10. Checks whether any value in the list makes the condition true.
MODIFY
Any
Static or dynamic
ON
11. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
**** 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
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
RENAME just_two_more_weeks TO finally_i
12. What are the main components of a ROWID?
DD-MON-YY
Re-create
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
13. You can pass parameters from the operating system when ___________ in SQl*Plus
SELECT DISTINCT menu FROM restaurant
X
Running a script file
Equijoin and identical column names
14. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
USER_ - ALL_ - DBA_ - and V$
Data
Running a script file
999999.9999
15. 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.
Common column value
VALUES
Inconsistencies
UNION operator
16. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Null
2000
Export Data
Common column value
17. The ______ operator compares a list of values for equivalency
Fractional seconds
ANY
SET clause of an UPDATE statement
Script
18. Converting a text literal to DATE format requires the use of the...
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
COMMIT
USER_ - ALL_ - DBA_ - and V$
TO_CHAR function
19. 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
20. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
4000
Self-joins
Any
21. 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
22. Explain in detail the impact of INDEXES and how they are used by Oracle.
Nested
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
DICTIONARY
FALSE
23. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
UTC
Scalar
Crow's foot
24. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Same
Crow's foot
VALUES clause of an INSERT statement
DECODE
25. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Rounded edges
MINUS
COMMIT
ALL_OBJECTS
26. NUMBER functions can be...
Nested
Same
DESC dict;
Scalar
27. 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.
SUM
Equijoin and correlated subquery
MINUS
28. 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.
ANY
RIGHT LEFT JOIN
Export Data
DD-MON-YY
29. 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.
Primary key/foreign key
Has not changed the name
Same
Semicolon or forward slash
30. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Retrieve
FALSE
SELECT DISTINCT menu FROM restaurant
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.
31. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Retrieve
User-defined reports
Any
32. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Business problems
MINUS
Same
Non-matching rows
33. Subqueries can return...
Multiple rows
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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
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
34. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
X
Surrogate key
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
35. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Extra spaces
Static or dynamic
Precision
DECODE
36. In a view you can give a column a different name than it has in the...
UNION operator
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Parent table
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
37. Checks whether any value in the list makes the condition true.
DD-MON-YY
Location of the file
Any
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
38. Oracle uses the outer join operator to indicate that nulls are shown for...
Orphan
Non-matching rows
Multiple rows
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.
39. To restart a sequence at a lower number - you can drop and ________ the sequence.
Any
The way NULL values are treated
Re-create
When the table is small (unless your business rules require you too)
40. PAGESIZE
Common column value
STORAGE
Precision
Default is 14; when you use the default - you repeat the heading every 14 rows.
41. What is Oracle's most popular index storage structure?
Scalar
B-Tree Index
BETWEEN
Same
42. List 6 Table-Related Menu Choices
Inconsistencies
Re-create
All
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
43. A join across three tables can be expressed with the ________ join syntax.
X
ANSI
All caps
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
44. The _______ operator determines common rows.
Nested
RUN SCRIPT
ANY
INTERSECT
45. Returns rows if the condition is true for all the values in the list
Recursive
SUM
All
X
46. List the reasons that a subquery could not be unnested.
Optional
Has not changed the name
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
X
47. How many characters can be stored in the CHAR column/field?
2000
SET clause of an UPDATE statement
X
Semicolon or forward slash
48. The same function can be used ______ in a SELECT statement.
Parent table
RENAME just_two_more_weeks TO finally_i
99.99
Twice
49. SQL*Plus is used more than SQL Developer when you need to...
The way NULL values are treated
Run scripts
4000
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
50. List 4 aggregate functions
MODIFY
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Columns
Both MIN and MAX