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. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Correlated
Twice
Parent table
Any
2. What is the name of the key automatically generated from a sequence?
VALUES
Asterisk
INNER JOIN
Surrogate key
3. The ____________ command makes changes permanent.
12:00:00 A.M
Leading-edge
LIKE
COMMIT
4. The DUAL table can be used for...
Testing functions
Surrogate
SET clause of an UPDATE statement
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
5. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
Rounded edges
4
Twice
6. A join across three tables can be expressed with the ________ join syntax.
ON
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.
Self-joins
ANSI
7. Queries that are found in parentheses are done first - just as in the order of operations when doing...
X
Optional
Orphan
Mathematical equations
8. You use the _________ keyword to add columns or constraints to a table.
4000
ADD
RIGHT LEFT JOIN
SYSDATE
9. Explain how the SPOOL command is used and what program it can be used in.
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
Groups
4000
Twice
10. A _________ subquery returns a single column with a single row
Structured Query Language
Implicit conversion
Both MIN and MAX
Scalar
11. Explain what is found in the All Objects report folder in SQL Developer
ANY
Time zone
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Any
12. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Running a script file
Any
KEEP INDEX
SUM
13. 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?
ANSI
DICTIONARY
All caps
Both MIN and MAX
14. The term ____________ ___________ is used to express a join that satisfies the join condition.
B-Tree Index
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
INNER JOIN
GROUP BY
15. The ALTER SESSION statement can change the session's...
ADD_MONTHS function
Time zone
Location of the file
Orphan
16. The focus of the logical data model is _____________
Multiple rows
Business problems
Parent table
The indexed column is part of an expression. In this case - consider creating a function-based index instead
17. Subqueries can return...
When the table is small (unless your business rules require you too)
ADD_MONTHS function
Multiple rows
Committed
18. Which one of the following string functions tells you how many characters are in a string?
LENGTH
SET clause of an UPDATE statement
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.
SELECT SYSDATE+1/96 - FROM dual
19. Returns rows if the condition is true for all the values in the list
@ or START
FALSE
All
BETWEEN
20. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
LENGTH
Command returns the number of records returned by a query.
Any
21. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
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.
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
Three
4
22. Write a statement for SQL*Plus that shows the dictionary.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
DESC dict;
Equijoin and identical column names
Location of the file
23. What does SQL stand for?
Has not changed the name
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Rounded edges
Structured Query Language
24. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
SYSDATE
ANY
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
4
25. In SQL Developer field names and table names are shown in the color _______.
Black
+
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
@ or START
26. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
Testing functions
Default is 14; when you use the default - you repeat the heading every 14 rows.
DD-MON-YY
27. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
DICT_COLUMNS
V$
Data
Semicolon or forward slash
28. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Scale
Retrieve
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
29. You can pass parameters from the operating system when ___________ in SQl*Plus
Crow's foot
Default is 14; when you use the default - you repeat the heading every 14 rows.
Running a script file
ON
30. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Primary key/foreign key
LIKE
CLOB
BETWEEN
31. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
COMMIT
User-defined reports
INNER JOIN
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
32. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
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
VALUES
Fractional seconds
33. Match each of the SQL commands on the left with a verb from the list.
X
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
DD-MON-YY
STORAGE
34. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
+
Null
Static or dynamic
Equijoin and correlated subquery
35. Explain the steps needed to run a script in SQL Developer
RIGHT LEFT JOIN
Hide data
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.
DICTIONARY
36. The using clause of the ANSI join syntax always assumes an...
Implicit conversion
Mathematical equations
Command returns the number of records returned by a query.
Equijoin and identical column names
37. What are the main components of a ROWID?
Scalar
Equijoin and correlated subquery
LIKE
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.
38. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
Null
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
39. You use the __________ keyword to change characteristics of a column.
Scale
MODIFY
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
ADD
40. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
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
Three
ANSI
41. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Results
X
Month ddth - yyyy
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
42. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
X
STORAGE
Inconsistencies
43. Converting a text literal to DATE format requires the use of the...
FALSE
Another null
X
TO_CHAR function
44. The TRUNC function on a date without a format model truncates the timestamp to...
Precision
USER_ - ALL_ - DBA_ - and V$
12:00:00 A.M
INTERSECT
45. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
DD-MON-YY
DECODE
LENGTH
46. The COUNT function uses the __________ wildcard.
Running a script file
FALSE
Asterisk
DICTIONARY
47. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
Twice
ANY
Default is 14; when you use the default - you repeat the heading every 14 rows.
48. You can use the ________________ to subtract months from a given date.
LENGTH
ADD_MONTHS function
Command returns the number of records returned by a query.
ROLLBACK
49. Write a statement that drops the index need_to_pass_i
Self-joins
DROP INDEX need_to_pass_i
Testing functions
Groups
50. To equijoin a table with another table involves matching the...
Common column value
X
All caps
FALSE
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