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. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Hide data
Optional
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Surrogate key
2. The _______ function adds values together for a group of rows.
Business problems
Time zone
SUM
Multiple rows
3. To equijoin a table with another table involves matching the...
Common column value
Structured Query Language
RUN SCRIPT
The indexed column is part of an expression. In this case - consider creating a function-based index instead
4. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
VALUES clause of an INSERT statement
X
Common column value
User-defined reports
5. Which operator is most commonly used?
UNION
Three
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
2000
6. The ROWID pseudocolumn is not an ________- but it acts like one.
When the table is small (unless your business rules require you too)
Actual column
Location of the file
X
7. 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.
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.
Running a script file
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.
8. What is the keyboard shortcut for the ROLLBACK command?
F12
Data
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Common column value
9. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
Multiple rows
RIGHT LEFT JOIN
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
10. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Export Data
Combine
999999.9999
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.
11. _________ rows are not allowed in the relational model.
ALL_OBJECTS
A correct statement
Orphan
FALSE
12. The same function can be used ______ in a SELECT statement.
Twice
IN ANY ALL SOME
Both MIN and MAX
DD-MON-YY
13. The ___________ operator tests whether a matching row cannot be found.
X
When the table is small (unless your business rules require you too)
12:00:00 A.M
@ or START
14. The _______ operator determines common rows.
INTERSECT
ROLLBACK
Columns
ADD
15. The ALTER SESSION statement can change the session's...
Semicolon or forward slash
Time zone
INNER JOIN
Scalar
16. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Export Data
DICT_COLUMNS
ALL_OBJECTS
DD-MON-YY
17. It is considered good form to put all SQL commands in...
Retrieve
All caps
Month ddth - yyyy
Non-matching rows
18. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Mathematical equations
Extra spaces
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.
VALUES clause of an INSERT statement
19. To join four tables - you must have at least _____ join conditions.
SUM
Three
Export Data
MINUS
20. When is it not a good idea to use an index?
MODIFY
When the table is small (unless your business rules require you too)
Null
Surrogate
21. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Actual column
Export Data
Surrogate key
Precision
22. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Details
999999.9999
Parent table
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
23. UNION ALL does not sort - therefore it is less time consuming to use than the...
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.
SET clause of an UPDATE statement
UNION operator
Nested
24. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
STORAGE
BETWEEN
Null
NATURAL JOIN
25. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
**** 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
Non-matching rows
STORAGE
26. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
IN ANY ALL SOME
Multiple rows
Crow's foot
27. SQL*Plus is used more than SQL Developer when you need to...
F12
All caps
Parent table
Run scripts
28. LINESIZE
Logical unit of work
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Scale
STORAGE
29. The COUNT function uses the __________ wildcard.
DICT_COLUMNS
Asterisk
Data
Same
30. The query retrieves more than 5 to 15 percent of the rows
Inconsistencies
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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
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.
31. The focus of the logical data model is _____________
Another null
Static or dynamic
Business problems
Parent table
32. 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
33. A calculation with a null always yields...
Another null
ANSI
SELECT SYSDATE+1/96 - FROM dual
ROLLBACK
34. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
4
+
UTC
SELECT DISTINCT menu FROM restaurant
35. Which one of the following string functions tells you how many characters are in a string?
Scalar
LENGTH
CLOB
Location of the file
36. 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
37. List the different types of data dictionary views.
Actual column
RIGHT LEFT JOIN
UNION
USER_ - ALL_ - DBA_ - and V$
38. How many characters can you have using the VARCHAR data type?
RIGHT LEFT JOIN
+
DESC dict;
4000
39. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
4
Surrogate key
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Same
40. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Location of the file
Fractional seconds
DROP INDEX need_to_pass_i
Equijoin and correlated subquery
41. 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
X
DICT_COLUMNS
Run scripts
42. The TRUNC function on a date without a format model truncates the timestamp to...
Has not changed the name
12:00:00 A.M
Committed
All
43. __________________ inserts the current date and time.
CLOB
Equijoin and identical column names
SYSDATE
Equijoin
44. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Orphan
Any
Correlated
Both MIN and MAX
45. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
All caps
Any
Fractional seconds
**** 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
46. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
RENAME just_two_more_weeks TO finally_i
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
47. What is the maximum value for a column defined as NUMBER(4 -2)?
LIKE
Implicit conversion
Mathematical equations
99.99
48. FEEDBACK
999999.9999
Command returns the number of records returned by a query.
Optional
Multiple rows
49. A join across three tables can be expressed with the ________ join syntax.
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
TO_CHAR function
Leading-edge
ANSI
50. The key that most database designers prefer and is chosen by the system is the _____________ key.
Optional
Surrogate
Any
MINUS