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. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Logical unit of work
Structured Query Language
Export Data
2. The ____________ command makes changes permanent.
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.
Export Data
COMMIT
Nested
3. The focus of the logical data model is _____________
Business problems
The way NULL values are treated
KEEP INDEX
Run scripts
4. What does SQL stand for?
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Structured Query Language
Scale
All
5. List 4 aggregate functions
GROUP BY
Implicit conversion
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
ROLLBACK
6. To join four tables - you must have at least _____ join conditions.
Three
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
DICT_COLUMNS
Groups
7. 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.
RIGHT LEFT JOIN
MINUS
INNER JOIN
Null
8. Converting a text literal to DATE format requires the use of the...
Multiple rows
TO_CHAR function
NATURAL JOIN
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
9. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Inconsistencies
Common column value
RUN SCRIPT
Both MIN and MAX
10. Write a statement that drops the index need_to_pass_i
UNION
DROP INDEX need_to_pass_i
When the table is small (unless your business rules require you too)
Static or dynamic
11. 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
USER_ - ALL_ - DBA_ - and V$
DROP INDEX need_to_pass_i
CLOB
12. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
X
Logical unit of work
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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
13. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
X
Static or dynamic
Same
Self-joins
14. The purpose of the HAVING clause is to eliminate___________.
12:00:00 A.M
Groups
User-defined reports
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
15. NUMBER functions can be...
Default is 14; when you use the default - you repeat the heading every 14 rows.
DICT_COLUMNS
Nested
INNER JOIN
16. Explain how Substitution Variables are used when writing scripts.
+
Committed
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.
Three
17. A join across three tables can be expressed with the ________ join syntax.
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.
ANSI
Any
Null
18. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
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.
Any
STORAGE
19. The time zone displacement value indicates the time difference from _______.
UTC
2000
Any
RUN SCRIPT
20. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
V$
Leading-edge
+
Non-matching rows
21. 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.
GROUP BY
Retrieve
SYSDATE
Has not changed the name
22. The __________ operator is inclusive of the two values specified.
Structured Query Language
INTERSECT
BETWEEN
Self-joins
23. Which one of the following string functions tells you how many characters are in a string?
X
Same
VALUES
LENGTH
24. What is the most common DATE format found in SQL?
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
GROUP BY
DD-MON-YY
Hide data
25. Write the syntax to rename index just_two_more_weeks_i to finally_i
Parent table
Surrogate
Has not changed the name
RENAME just_two_more_weeks TO finally_i
26. A _________ subquery returns a single column with a single row
Business problems
KEEP INDEX
User-defined reports
Scalar
27. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
SELECT DISTINCT menu FROM restaurant
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
2000
28. What is the tab in SQL Developer where data dictionary view information can be found?
Export Data
Details
Scalar
SET clause of an UPDATE statement
29. 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
30. Oracle uses the outer join operator to indicate that nulls are shown for...
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Non-matching rows
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
Recursive
31. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
DESC dict;
Same
DICT_COLUMNS
32. _________ rows are not allowed in the relational model.
Parent table
DICTIONARY
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Orphan
33. What is Oracle's most popular index storage structure?
B-Tree Index
Inconsistencies
12:00:00 A.M
Three
34. The _______ function adds values together for a group of rows.
SUM
LIKE
UTC
V$
35. You can use the ________________ to subtract months from a given date.
UTC
Logical unit of work
Month ddth - yyyy
ADD_MONTHS function
36. Explicit data type conversion is preferable to Oracle's...
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.
Location of the file
Implicit conversion
Re-create
37. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Parent table
Hide data
Orphan
38. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
NATURAL JOIN
Combine
INTERSECT
39. 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
40. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Self-joins
ALL_OBJECTS
FALSE
999999.9999
41. 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
FALSE
Correlated
42. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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
ANSI
User-defined reports
UNION operator
43. Users can only see changes made to a database once they have been...
VALUES
SELECT SYSDATE+1/96 - FROM dual
Committed
When the table is small (unless your business rules require you too)
44. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
Default is 14; when you use the default - you repeat the heading every 14 rows.
Any
Committed
45. To equijoin a table with another table involves matching the...
Command returns the number of records returned by a query.
IN ANY ALL SOME
Twice
Common column value
46. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
DICTIONARY
Equijoin and identical column names
STORAGE
The indexed column is part of an expression. In this case - consider creating a function-based index instead
47. The RTRIM function is useful for eliminating ________ in a string.
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.
F12
GROUP BY
48. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
FALSE
VALUES clause of an INSERT statement
BETWEEN
X
49. FEEDBACK
Combine
KEEP INDEX
Command returns the number of records returned by a query.
X
50. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
INNER JOIN
Any
SET clause of an UPDATE statement
Correlated
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests