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 ____________ command makes changes permanent.
TO_CHAR function
Asterisk
COMMIT
Implicit conversion
2. NUMBER functions can be...
+
Nested
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
ANY
3. In a view you can give a column a different name than it has in the...
When the table is small (unless your business rules require you too)
Asterisk
Parent table
Precision
4. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Any
A correct statement
Has not changed the name
5. What are the main components of a ROWID?
When the table is small (unless your business rules require you too)
Surrogate key
BETWEEN
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.
6. Explain how the SPOOL command is used and what program it can be used in.
When the table is small (unless your business rules require you too)
Extra spaces
999999.9999
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
7. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
STORAGE
BETWEEN
+
Orphan
8. The ______ operator compares a list of values for equivalency
Command returns the number of records returned by a query.
LIKE
RUN SCRIPT
ANY
9. Explicit data type conversion is preferable to Oracle's...
SELECT DISTINCT menu FROM restaurant
2000
Command returns the number of records returned by a query.
Implicit conversion
10. Write a statement that drops the index need_to_pass_i
COMMIT
Location of the file
DROP INDEX need_to_pass_i
Equijoin and identical column names
11. The ALTER SESSION statement can change the session's...
Null
NATURAL JOIN
4
Time zone
12. Subqueries can return...
X
F12
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Multiple rows
13. It is considered good form to put all SQL commands in...
Recursive
All caps
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
RUN SCRIPT
14. List the different types of data dictionary views.
RENAME just_two_more_weeks TO finally_i
USER_ - ALL_ - DBA_ - and V$
DROP INDEX need_to_pass_i
@ or START
15. 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?
DICTIONARY
Combine
Black
USER_ - ALL_ - DBA_ - and V$
16. SELECT LIST of a subquery in an INSERT statement
+
SET clause of an UPDATE statement
FALSE
TO_CHAR function
17. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Testing functions
Both MIN and MAX
Month ddth - yyyy
RENAME just_two_more_weeks TO finally_i
18. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
999999.9999
MINUS
Surrogate key
19. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Results
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
X
Command returns the number of records returned by a query.
20. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Equijoin and correlated subquery
Month ddth - yyyy
IN ANY ALL SOME
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
21. Converting a text literal to DATE format requires the use of the...
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
12:00:00 A.M
TO_CHAR function
Surrogate key
22. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Same
VALUES clause of an INSERT statement
Columns
Rounded edges
23. The _______ function adds values together for a group of rows.
Semicolon or forward slash
Rounded edges
SUM
V$
24. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
GROUP BY
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Inconsistencies
25. When you have issued a DELETE command - you can still ________ those rows and restore the information.
UNION
Mathematical equations
Retrieve
FALSE
26. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
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.
USER_ - ALL_ - DBA_ - and V$
COMMIT
27. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
RUN SCRIPT
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
RENAME just_two_more_weeks TO finally_i
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
28. 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
Inconsistencies
BETWEEN
ANY
29. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
Correlated
X
Committed
30. How many characters can be stored in the CHAR column/field?
Mathematical equations
TO_CHAR function
2000
Primary key/foreign key
31. The COUNT function is useful for determining whether a table has...
Asterisk
Data
ROLLBACK
X
32. You can use the ________________ to subtract months from a given date.
ADD_MONTHS function
DESC dict;
DICT_COLUMNS
ROLLBACK
33. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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.
4
VALUES
34. Which format mask displays December 31st - 1999?
Scale
+
Month ddth - yyyy
ANY
35. What is the name of the key automatically generated from a sequence?
Surrogate key
4000
Three
Equijoin and correlated subquery
36. To equijoin a table with another table involves matching the...
DICT_COLUMNS
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.
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.
Common column value
37. ____________ are useful for analyzing and exploring the relationships within your 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.
DECODE
Self-joins
Committed
38. 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.
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.
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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
RIGHT LEFT JOIN
39. List the reasons that a subquery could not be unnested.
STORAGE
Committed
When the table is small (unless your business rules require you too)
X
40. Which one of the following string functions tells you how many characters are in a string?
Hide data
DESC dict;
LENGTH
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
41. What does SQL stand for?
RIGHT LEFT JOIN
GROUP BY
Structured Query Language
UNION
42. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
DESC dict;
Logical unit of work
COMMIT
43. 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.
Fractional seconds
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.
UTC
44. Write a statement for SQL*Plus that shows the dictionary.
ADD_MONTHS function
DESC dict;
Parent table
Semicolon or forward slash
45. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
UNION
When the table is small (unless your business rules require you too)
12:00:00 A.M
46. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
+
Common column value
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
BETWEEN
47. Match each of the SQL commands on the left with a verb from the list.
Default is 14; when you use the default - you repeat the heading every 14 rows.
V$
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
RUN SCRIPT
48. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
KEEP INDEX
Multiple rows
DESC dict;
ADD
49. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
Export Data
SELECT DISTINCT menu FROM restaurant
X
50. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
All
Any
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