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. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
999999.9999
Committed
Semicolon or forward slash
Columns
2. What does SQL stand for?
VALUES clause of an INSERT statement
Testing functions
Structured Query Language
A correct statement
3. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
99.99
IN ANY ALL SOME
MINUS
Fractional seconds
4. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
Black
DICTIONARY
ANY
5. Comparison operators can compare multiple _________________.
Semicolon or forward slash
ON
Columns
DROP INDEX need_to_pass_i
6. SELECT * FROM instructor ORDER BY phone
A correct statement
Black
Correlated
2000
7. The COUNT function is useful for determining whether a table has...
Primary key/foreign key
Data
All
FALSE
8. 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
9. The TRUNC function on a date without a format model truncates the timestamp to...
Same
Results
12:00:00 A.M
FALSE
10. The DUAL table can be used for...
2000
+
Testing functions
Scale
11. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Scale
Retrieve
MINUS
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
12. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Details
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
Multiple rows
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.
13. Write a statement that drops the index need_to_pass_i
All caps
DROP INDEX need_to_pass_i
VALUES
Crow's foot
14. How many characters can be stored in the CHAR column/field?
Columns
The way NULL values are treated
2000
VALUES clause of an INSERT statement
15. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
4000
Optional
Equijoin
B-Tree Index
16. Write a solution that adds 20 minutes to a given date.
Leading-edge
BETWEEN
+
SELECT SYSDATE+1/96 - FROM dual
17. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
BETWEEN
+
SELECT DISTINCT menu FROM restaurant
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
18. Returns rows if the condition is true for all the values in the list
+
All
Another null
User-defined reports
19. You can use the ________________ to subtract months from a given date.
ALL_OBJECTS
Location of the file
Logical unit of work
ADD_MONTHS function
20. The time zone displacement value indicates the time difference from _______.
UTC
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
Business problems
Parent table
21. A _________ subquery returns a single column with a single row
Rounded edges
B-Tree Index
Scalar
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
22. The RTRIM function is useful for eliminating ________ in a string.
Extra spaces
ON
IN ANY ALL SOME
FALSE
23. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Same
Default is 14; when you use the default - you repeat the heading every 14 rows.
Three
NATURAL JOIN
24. In SQL Developer field names and table names are shown in the color _______.
DD-MON-YY
Black
12:00:00 A.M
4000
25. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
A correct statement
Same
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
26. What is the first column of a composite index called?
Equijoin and correlated subquery
Leading-edge
Orphan
Non-matching rows
27. NUMBER functions can be...
Nested
Any
MINUS
Equijoin and identical column names
28. The ___________ operator tests whether a matching row cannot be found.
+
Command returns the number of records returned by a query.
RENAME just_two_more_weeks TO finally_i
X
29. To join four tables - you must have at least _____ join conditions.
Equijoin and correlated subquery
Three
DROP INDEX need_to_pass_i
Fractional seconds
30. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Combine
Three
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
31. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Static or dynamic
12:00:00 A.M
Null
Scale
32. Explain the steps needed to run a script in SQL Developer
FALSE
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.
TO_CHAR function
Scalar
33. The same function can be used ______ in a SELECT statement.
Orphan
Twice
X
Any
34. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
IN ANY ALL SOME
VALUES clause of an INSERT statement
All caps
NATURAL JOIN
35. The COUNT function uses the __________ wildcard.
Logical unit of work
4
Asterisk
Primary key/foreign key
36. When you have issued a DELETE command - you can still ________ those rows and restore the information.
DROP INDEX need_to_pass_i
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.
DICTIONARY
Retrieve
37. Write the syntax to rename index just_two_more_weeks_i to finally_i
Time zone
RENAME just_two_more_weeks TO finally_i
LENGTH
Non-matching rows
38. The ____________ command makes changes permanent.
Hide data
Primary key/foreign key
Structured Query Language
COMMIT
39. Users can only see changes made to a database once they have been...
Committed
ANSI
SYSDATE
Crow's foot
40. You use the __________ keyword to change characteristics of a column.
V$
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Rounded edges
MODIFY
41. What is Oracle's most popular index storage structure?
UNION operator
B-Tree Index
**** 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
Static or dynamic
42. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Static or dynamic
FALSE
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Mathematical equations
43. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
User-defined reports
Any
+
Fractional seconds
44. To restart a sequence at a lower number - you can drop and ________ the sequence.
DICT_COLUMNS
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Re-create
When the table is small (unless your business rules require you too)
45. 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
46. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Command returns the number of records returned by a query.
DICT_COLUMNS
VALUES clause of an INSERT statement
Hide data
47. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Same
ADD_MONTHS function
Equijoin and correlated subquery
Scale
48. The _______ function lets you perform if-then-else functionality with the SQL language.
Columns
Any
RIGHT LEFT JOIN
DECODE
49. 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.
Implicit conversion
RIGHT LEFT JOIN
Crow's foot
Month ddth - yyyy
50. The focus of the logical data model is _____________
Export Data
Business problems
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.
Combine
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