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. Checks whether any value in the list makes the condition true.
Any
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
DICT_COLUMNS
Actual column
2. Dynamic views begin with a ___________.
Equijoin and identical column names
Command returns the number of records returned by a query.
V$
Parent table
3. When you have issued a DELETE command - you can still ________ those rows and restore the information.
SELECT DISTINCT menu FROM restaurant
Any
DD-MON-YY
Retrieve
4. Write a solution that adds 20 minutes to a given date.
RUN SCRIPT
Nested
SELECT SYSDATE+1/96 - FROM dual
2000
5. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Optional
DICT_COLUMNS
Month ddth - yyyy
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
6. How many characters can you have using the VARCHAR data type?
4000
ADD_MONTHS function
SUM
Time zone
7. The ___________ operator tests whether a matching row cannot be found.
**** 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
Any
X
Committed
8. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Any
Asterisk
Rounded edges
Optional
9. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Multiple rows
F12
10. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
LENGTH
VALUES
Combine
ADD
11. Which operator is most commonly used?
Nested
F12
Logical unit of work
UNION
12. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
Non-matching rows
**** 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
13. The _______ operator determines common rows.
SELECT DISTINCT menu FROM restaurant
F12
Null
INTERSECT
14. To restart a sequence at a lower number - you can drop and ________ the sequence.
Re-create
GROUP BY
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ROLLBACK
15. The query retrieves more than 5 to 15 percent of the rows
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.
UNION operator
Black
The indexed column is part of an expression. In this case - consider creating a function-based index instead
16. The ROWID pseudocolumn is not an ________- but it acts like one.
BETWEEN
All caps
+
Actual column
17. The ________ operator cannot compare against a list of values.
LIKE
GROUP BY
Implicit conversion
Fractional seconds
18. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Committed
Common column value
SELECT DISTINCT menu FROM restaurant
Inconsistencies
19. You can pass parameters from the operating system when ___________ in SQl*Plus
Location of the file
Running a script file
Another null
Multiple rows
20. 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?
Equijoin and identical column names
LENGTH
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
DICTIONARY
21. Which one of the following string functions tells you how many characters are in a string?
LENGTH
The indexed column is part of an expression. In this case - consider creating a function-based index instead
MODIFY
COMMIT
22. The _____________ clause determines how rows are grouped.
RIGHT LEFT JOIN
ANY
GROUP BY
B-Tree Index
23. LINESIZE
Equijoin and correlated subquery
KEEP INDEX
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Testing functions
24. The DUAL table can be used for...
FALSE
Testing functions
RENAME just_two_more_weeks TO finally_i
GROUP BY
25. What is the main difference between the NOT EXISTS and the NOT IN operators?
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.
Details
The way NULL values are treated
Hide data
26. Subqueries can return...
Non-matching rows
TO_CHAR function
Multiple rows
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
27. List 4 aggregate functions
COMMIT
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Export Data
Primary key/foreign key
28. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MODIFY
Data
MINUS
ANY
29. How many characters can be stored in the CHAR column/field?
VALUES clause of an INSERT statement
Surrogate key
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.
2000
30. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Another null
ADD
Any
FALSE
31. The RTRIM function is useful for eliminating ________ in a string.
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
Equijoin and identical column names
All caps
Extra spaces
32. The key that most database designers prefer and is chosen by the system is the _____________ key.
Business problems
Location of the file
Implicit conversion
Surrogate
33. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
ROLLBACK
Correlated
Static or dynamic
The indexed column is part of an expression. In this case - consider creating a function-based index instead
34. The __________ operator is inclusive of the two values specified.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
X
BETWEEN
Semicolon or forward slash
35. The ______ operator compares a list of values for equivalency
Extra spaces
ANY
Run scripts
VALUES
36. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
B-Tree Index
4
Actual column
Has not changed the name
37. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
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
@ or START
VALUES clause of an INSERT statement
38. Explain how Substitution Variables are used when writing scripts.
LIKE
MINUS
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.
ADD_MONTHS function
39. What is the tab in SQL Developer where data dictionary view information can be found?
Details
B-Tree Index
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Correlated
40. The COUNT function uses the __________ wildcard.
All caps
Mathematical equations
INNER JOIN
Asterisk
41. The _______ function lets you perform if-then-else functionality with the SQL language.
Another null
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
DECODE
DD-MON-YY
42. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Null
4
COMMIT
43. What is the most common DATE format found in SQL?
99.99
Self-joins
ANY
DD-MON-YY
44. 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
45. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
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
Mathematical equations
IN ANY ALL SOME
DICTIONARY
46. Oracle uses the outer join operator to indicate that nulls are shown for...
Orphan
X
Non-matching rows
Committed
47. The using clause of the ANSI join syntax always assumes an...
Equijoin and identical column names
+
Three
99.99
48. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
+
Any
99.99
VALUES clause of an INSERT statement
49. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
Nested
LIKE
FALSE
50. What is the keyboard shortcut for the ROLLBACK command?
F12
ANSI
Another null
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.
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