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. The ___________ operator tests whether a matching row cannot be found.
X
CLOB
LIKE
All caps
2. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
MODIFY
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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
INNER JOIN
3. The time zone displacement value indicates the time difference from _______.
Both MIN and MAX
Equijoin and identical column names
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.
UTC
4. The RTRIM function is useful for eliminating ________ in a string.
Static or dynamic
Extra spaces
When the table is small (unless your business rules require you too)
Structured Query Language
5. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
DECODE
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Re-create
Combine
6. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Static or dynamic
Semicolon or forward slash
VALUES
GROUP BY
7. Comparison operators can compare multiple _________________.
Columns
Parent table
SELECT SYSDATE+1/96 - FROM dual
INTERSECT
8. The using clause of the ANSI join syntax always assumes an...
INNER JOIN
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.
Equijoin and identical column names
ANY
9. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
Fractional seconds
@ or START
Logical unit of work
10. When you run a script in SQL*Plus you must give the...
The way NULL values are treated
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
DECODE
Location of the file
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. List 4 aggregate functions
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
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Has not changed the name
13. Write a statement for SQL*Plus that shows the dictionary.
SUM
@ or START
DESC dict;
Month ddth - yyyy
14. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
LIKE
12:00:00 A.M
Committed
15. The focus of the logical data model is _____________
V$
FALSE
UNION
Business problems
16. FEEDBACK
Command returns the number of records returned by a query.
Extra spaces
Testing functions
ALL_OBJECTS
17. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
Columns
Running a script file
Scale
18. How many characters can you have using the VARCHAR data type?
Retrieve
4000
Scale
Default is 14; when you use the default - you repeat the heading every 14 rows.
19. Dynamic views begin with a ___________.
DD-MON-YY
SUM
V$
Orphan
20. What does SQL stand for?
Extra spaces
Structured Query Language
F12
INNER JOIN
21. A _________ subquery returns a single column with a single row
Self-joins
DESC dict;
ALL_OBJECTS
Scalar
22. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
Business problems
Rounded edges
Precision
23. What is the keyboard shortcut for the ROLLBACK command?
F12
Non-matching rows
Default is 14; when you use the default - you repeat the heading every 14 rows.
All caps
24. Explicit data type conversion is preferable to Oracle's...
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Black
Implicit conversion
The indexed column is part of an expression. In this case - consider creating a function-based index instead
25. In SQL Developer field names and table names are shown in the color _______.
UTC
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.
Mathematical equations
Black
26. You use the _________ keyword to add columns or constraints to a table.
GROUP BY
ADD
Fractional seconds
FALSE
27. Which operator is most commonly used?
UNION
Leading-edge
SYSDATE
Any
28. List the steps performed by a correlated subquery.
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.
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
Equijoin and 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
29. What is the data type you can use if you need an unlimited number of textual characters?
Groups
Location of the file
Crow's foot
CLOB
30. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Parent table
UNION operator
Hide data
MINUS
31. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
V$
RUN SCRIPT
Data
32. Explain what a static data dictionary view is and how it is used
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.
Time zone
Groups
Data
33. What is the name of the key automatically generated from a sequence?
Retrieve
Export Data
TO_CHAR function
Surrogate key
34. What is the tab in SQL Developer where data dictionary view information can be found?
V$
Details
ON
FALSE
35. What do views do that makes them so useful for security?
Hide data
A correct statement
Leading-edge
B-Tree Index
36. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
X
Export Data
Implicit conversion
User-defined reports
37. The ____________ command makes changes permanent.
Month ddth - yyyy
COMMIT
Implicit conversion
CLOB
38. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
Another null
Any
DROP INDEX need_to_pass_i
39. The COUNT function uses the __________ wildcard.
USER_ - ALL_ - DBA_ - and V$
Hide data
Asterisk
RIGHT LEFT JOIN
40. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
Script
999999.9999
Any
41. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
X
COMMIT
BETWEEN
Twice
42. Explain what is found in the All Objects report folder in SQL Developer
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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Inconsistencies
All caps
43. Users can only see changes made to a database once they have been...
Asterisk
DICT_COLUMNS
VALUES
Committed
44. UNION ALL does not sort - therefore it is less time consuming to use than the...
Null
NATURAL JOIN
UNION operator
Precision
45. Explain in detail the impact of INDEXES and how they are used by Oracle.
Scalar
Twice
RIGHT LEFT JOIN
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
46. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
INNER JOIN
Structured Query Language
Testing functions
VALUES clause of an INSERT statement
47. Explain how Substitution Variables are used when writing scripts.
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.
Actual column
Re-create
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.
48. Queries that are found in parentheses are done first - just as in the order of operations when doing...
DICTIONARY
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Mathematical equations
ANY
49. Explain how the SPOOL command is used and what program it can be used in.
Precision
TO_CHAR function
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
Three
50. To restart a sequence at a lower number - you can drop and ________ the sequence.
DICTIONARY
Null
INTERSECT
Re-create
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