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 using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Groups
999999.9999
Re-create
Optional
2. A transaction is a...
Logical unit of work
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
Committed
Default is 14; when you use the default - you repeat the heading every 14 rows.
3. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Recursive
Fractional seconds
SELECT SYSDATE+1/96 - FROM dual
X
4. Write a solution that adds 20 minutes to a given date.
Results
ANY
SELECT SYSDATE+1/96 - FROM dual
FALSE
5. The same function can be used ______ in a SELECT statement.
Twice
Business problems
Rounded edges
4000
6. What is the tab in SQL Developer where data dictionary view information can be found?
Results
Details
2000
X
7. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Scale
TO_CHAR function
Logical unit of work
Equijoin
8. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
Three
All caps
The way NULL values are treated
9. Subqueries can return...
Equijoin and identical column names
Multiple rows
Testing functions
Surrogate key
10. To join four tables - you must have at least _____ join conditions.
Three
All
Combine
Retrieve
11. Write a statement that drops the index need_to_pass_i
Month ddth - yyyy
12:00:00 A.M
Structured Query Language
DROP INDEX need_to_pass_i
12. You use the _________ keyword to add columns or constraints to a table.
ADD
ROLLBACK
All caps
Correlated
13. What is the main difference between the NOT EXISTS and the NOT IN operators?
USER_ - ALL_ - DBA_ - and V$
Rounded edges
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 way NULL values are treated
14. The COUNT function is useful for determining whether a table has...
The indexed column is part of an expression. In this case - consider creating a function-based index instead
ROLLBACK
Primary key/foreign key
Data
15. 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
LIKE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Data
16. Which one of the following string functions tells you how many characters are in a string?
NATURAL JOIN
LENGTH
VALUES
Primary key/foreign key
17. To equijoin a table with another table involves matching the...
Common column value
All
Fractional seconds
MODIFY
18. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Committed
Script
Combine
19. 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
Common column value
Same
20. The ______ operator compares a list of values for equivalency
LENGTH
KEEP INDEX
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ANY
21. To restart a sequence at a lower number - you can drop and ________ the sequence.
Primary key/foreign key
Re-create
F12
ADD_MONTHS function
22. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
X
ANY
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
23. Write the syntax to rename index just_two_more_weeks_i to finally_i
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
RENAME just_two_more_weeks TO finally_i
When the table is small (unless your business rules require you too)
24. Self-joins are useful for performing comparisons and checking for ___________ in data.
V$
Inconsistencies
DICTIONARY
SYSDATE
25. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
MODIFY
COMMIT
Details
4
26. The using clause of the ANSI join syntax always assumes an...
Committed
Equijoin and identical column names
Results
4
27. Match each of the SQL commands on the left with a verb from the list.
V$
Run scripts
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
B-Tree Index
28. What is the keyboard shortcut for the ROLLBACK command?
Rounded edges
F12
DICTIONARY
Retrieve
29. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
12:00:00 A.M
Surrogate
Semicolon or forward slash
Groups
30. 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
31. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Committed
User-defined reports
Details
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
32. Returns rows if the condition is true for all the values in the list
All
Equijoin and correlated subquery
Surrogate
@ or START
33. When is it not a good idea to use an index?
FALSE
Black
When the table is small (unless your business rules require you too)
Fractional seconds
34. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
ROLLBACK
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
F12
Both MIN and MAX
35. Converting a text literal to DATE format requires the use of the...
Precision
Implicit conversion
Groups
TO_CHAR function
36. List 4 aggregate functions
Asterisk
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Self-joins
Columns
37. 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?
Time zone
DICTIONARY
ANY
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
38. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Non-matching rows
Null
The way NULL values are treated
DECODE
39. 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
40. Users can only see changes made to a database once they have been...
Committed
Implicit conversion
ON
User-defined reports
41. Explain what is found in the All Objects report folder in SQL Developer
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
Equijoin and correlated subquery
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
F12
42. You can use the ________________ to subtract months from a given date.
Self-joins
ADD_MONTHS function
99.99
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
43. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Logical unit of work
Asterisk
Location of the file
User-defined reports
44. How many characters can you have using the VARCHAR data type?
Logical unit of work
4000
BETWEEN
BETWEEN
45. The _______ function lets you perform if-then-else functionality with the SQL language.
Default is 14; when you use the default - you repeat the heading every 14 rows.
DECODE
X
IN ANY ALL SOME
46. Which format mask displays December 31st - 1999?
STORAGE
Month ddth - yyyy
99.99
ON
47. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
VALUES
ANSI
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.
X
48. List the different types of data dictionary views.
Fractional seconds
VALUES clause of an INSERT statement
USER_ - ALL_ - DBA_ - and V$
All
49. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
TO_CHAR function
RUN SCRIPT
STORAGE
COMMIT
50. The term ____________ ___________ is used to express a join that satisfies the join condition.
Leading-edge
Command returns the number of records returned by a query.
INNER JOIN
Multiple rows