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. You can use the ________________ to subtract months from a given date.
ADD_MONTHS function
Any
Business problems
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
2. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Multiple rows
Committed
Has not changed the name
MINUS
3. The _______ function adds values together for a group of rows.
LENGTH
Crow's foot
SUM
INTERSECT
4. Checks whether any value in the list makes the condition true.
RIGHT LEFT JOIN
Hide data
X
Any
5. _________________ relationships are always optional relationships.
Equijoin and correlated subquery
Recursive
All
GROUP BY
6. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Logical unit of work
Month ddth - yyyy
Primary key/foreign key
7. The focus of the logical data model is _____________
Null
Business problems
BETWEEN
Committed
8. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Same
Re-create
Results
Equijoin
9. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
UNION
Rounded edges
Command returns the number of records returned by a query.
KEEP INDEX
10. What does SQL stand for?
DICTIONARY
+
Structured Query Language
X
11. How many characters can be stored in the CHAR column/field?
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ON
2000
Fractional seconds
12. Dynamic views begin with a ___________.
MINUS
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Same
V$
13. Another name for a data dictionary view is __________________ or _________________.
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
Self-joins
Static or dynamic
Black
14. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
Correlated
MINUS
Has not changed the name
15. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
Extra spaces
Scale
Self-joins
16. List the different types of data dictionary views.
Any
Extra spaces
USER_ - ALL_ - DBA_ - and V$
RUN SCRIPT
17. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Primary key/foreign key
ROLLBACK
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
Actual column
18. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
999999.9999
Data
Mathematical equations
4
19. The RTRIM function is useful for eliminating ________ in a string.
FALSE
Extra spaces
ROLLBACK
DICT_COLUMNS
20. Write a solution that adds 20 minutes to a given date.
Implicit conversion
SELECT SYSDATE+1/96 - FROM dual
Equijoin
LENGTH
21. What is the keyboard shortcut for the ROLLBACK command?
F12
ALL_OBJECTS
VALUES
Actual column
22. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Extra spaces
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
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
UNION operator
23. The __________ operator is inclusive of the two values specified.
Extra spaces
Same
Structured Query Language
BETWEEN
24. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
Command returns the number of records returned by a query.
CLOB
ALL_OBJECTS
25. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
Scale
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
F12
26. NUMBER functions can be...
Nested
Any
F12
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
27. Which operator is most commonly used?
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
UNION
IN ANY ALL SOME
Twice
28. 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.
Groups
Has not changed the name
Actual column
V$
29. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
BETWEEN
Groups
RUN SCRIPT
LENGTH
30. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Same
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
Structured Query Language
31. The time zone displacement value indicates the time difference from _______.
All caps
UTC
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
X
32. 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
33. You use the _________ keyword to add columns or constraints to a table.
X
ADD
Mathematical equations
Retrieve
34. When is it not a good idea to use an index?
Script
Twice
When the table is small (unless your business rules require you too)
Month ddth - yyyy
35. The ______ operator compares a list of values for equivalency
ANY
SUM
Month ddth - yyyy
Another null
36. You use the __________ keyword to change characteristics of a column.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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.
Same
MODIFY
37. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Location of the file
DESC dict;
Any
@ or START
38. List the reasons that a subquery could not be unnested.
BETWEEN
999999.9999
X
A correct statement
39. It is considered good form to put all SQL commands in...
Fractional seconds
RIGHT LEFT JOIN
Script
All caps
40. What is the data type you can use if you need an unlimited number of textual characters?
Columns
LIKE
CLOB
Time zone
41. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Columns
ON
Scalar
Mathematical equations
42. Explain what a static data dictionary view is and how it is used
MODIFY
Non-matching rows
SELECT DISTINCT menu FROM restaurant
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.
43. What do views do that makes them so useful for security?
Hide data
MINUS
VALUES clause of an INSERT statement
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
44. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Null
Export Data
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Business problems
45. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
User-defined reports
LIKE
SET clause of an UPDATE statement
46. List the steps performed by a correlated subquery.
**** 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
B-Tree Index
GROUP BY
Command returns the number of records returned by a query.
47. The _______ operator determines common rows.
Groups
INTERSECT
Committed
DROP INDEX need_to_pass_i
48. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
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
Both MIN and MAX
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Equijoin and identical column names
49. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.
FALSE
X
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Scale
50. The COUNT function uses the __________ wildcard.
SELECT DISTINCT menu FROM restaurant
Has not changed the name
Asterisk
Export Data
Sorry!:) No result found.
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