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. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Surrogate
Inconsistencies
DROP INDEX need_to_pass_i
2. 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
3. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Non-matching rows
X
VALUES clause of an INSERT statement
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.
4. List 6 Table-Related Menu Choices
Common column value
SET clause of an UPDATE statement
ANSI
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
5. What is the most common DATE format found in SQL?
RENAME just_two_more_weeks TO finally_i
DD-MON-YY
V$
Equijoin and correlated subquery
6. Write a statement for SQL*Plus that shows the dictionary.
Precision
DESC dict;
F12
DICTIONARY
7. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Common column value
Correlated
Actual column
Twice
8. Explain how Substitution Variables are used when writing scripts.
SELECT DISTINCT menu FROM restaurant
Equijoin
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.
Inconsistencies
9. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
GROUP BY
All
Implicit conversion
10. What is the main difference between the NOT EXISTS and the NOT IN operators?
NATURAL JOIN
B-Tree Index
The way NULL values are treated
Columns
11. 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
12. How many characters can be stored in the CHAR column/field?
FALSE
2000
Recursive
Structured Query Language
13. What do views do that makes them so useful for security?
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Hide data
A correct statement
Run scripts
14. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
Three
Location of the file
ANSI
15. 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?
Columns
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
DICTIONARY
X
16. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Any
Optional
ALL_OBJECTS
Combine
17. The __________ operator is inclusive of the two values specified.
All caps
BETWEEN
Command returns the number of records returned by a query.
MINUS
18. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
X
99.99
KEEP INDEX
19. SELECT LIST of a subquery in an INSERT statement
Black
SET clause of an UPDATE statement
Same
Retrieve
20. 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.
@ or START
Has not changed the name
Leading-edge
4000
21. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
UNION
STORAGE
Scale
Leading-edge
22. Returns rows if the condition is true for all the values in the list
Logical unit of work
ADD
Data
All
23. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
Scale
F12
Black
24. You can pass parameters from the operating system when ___________ in SQl*Plus
RIGHT LEFT JOIN
BETWEEN
Business problems
Running a script file
25. Which format mask displays December 31st - 1999?
Structured Query Language
99.99
Another null
Month ddth - yyyy
26. A calculation with a null always yields...
Extra spaces
2000
When the table is small (unless your business rules require you too)
Another null
27. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
ADD
RUN SCRIPT
Same
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
28. What does the following function return? SELECT LENGTH(NULL) - FROM dual
DD-MON-YY
Orphan
Null
Optional
29. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
INNER JOIN
X
Testing functions
30. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
MODIFY
ANSI
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
KEEP INDEX
31. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
Same
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Scalar
32. 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.
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.
RIGHT LEFT JOIN
BETWEEN
GROUP BY
33. Joins involving multiple columns must always follow the ____________ relationship path.
IN ANY ALL SOME
Black
Primary key/foreign key
4000
34. Converting a text literal to DATE format requires the use of the...
The indexed column is part of an expression. In this case - consider creating a function-based index instead
TO_CHAR function
Fractional seconds
Semicolon or forward slash
35. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Orphan
Data
ALL_OBJECTS
Another null
36. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
**** 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
BETWEEN
Logical unit of work
V$
37. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
+
Crow's foot
Fractional seconds
Both MIN and MAX
38. What is the tab in SQL Developer where data dictionary view information can be found?
Non-matching rows
Fractional seconds
Details
X
39. The ____________ command makes changes permanent.
MODIFY
Actual column
STORAGE
COMMIT
40. To restart a sequence at a lower number - you can drop and ________ the sequence.
Re-create
Surrogate key
B-Tree Index
**** 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
41. To equijoin a table with another table involves matching the...
Business problems
Implicit conversion
X
Common column value
42. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
SYSDATE
Results
Month ddth - yyyy
SELECT DISTINCT menu FROM restaurant
43. What is the maximum value for a column defined as NUMBER(4 -2)?
Recursive
99.99
RIGHT LEFT JOIN
LIKE
44. The COUNT function is useful for determining whether a table has...
Implicit conversion
Data
Nested
ON
45. Which operator is most commonly used?
USER_ - ALL_ - DBA_ - and V$
4000
ANSI
UNION
46. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
TO_CHAR function
X
NATURAL JOIN
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.
47. 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
48. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
**** 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
Surrogate
Fractional seconds
Equijoin and correlated subquery
49. You can use the ________________ to subtract months from a given date.
Export Data
ADD_MONTHS function
DICT_COLUMNS
UNION operator
50. Dynamic views begin with a ___________.
Implicit conversion
X
INNER JOIN
V$