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. When you run a script in SQL*Plus you must give the...
Self-joins
Parent table
Location of the file
F12
2. Write a statement that drops the index need_to_pass_i
Orphan
DROP INDEX need_to_pass_i
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
Asterisk
3. List 4 aggregate functions
Precision
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Any
Equijoin and identical column names
4. FEEDBACK
Non-matching rows
Command returns the number of records returned by a query.
Rounded edges
SUM
5. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
Results
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
2000
6. The RTRIM function is useful for eliminating ________ in a string.
Extra spaces
ANY
Leading-edge
@ or START
7. The ___________ operator tests whether a matching row cannot be found.
X
Logical unit of work
COMMIT
The way NULL values are treated
8. Joins involving multiple columns must always follow the ____________ relationship path.
Implicit conversion
Primary key/foreign key
Hide data
User-defined reports
9. Checks whether any value in the list makes the condition true.
12:00:00 A.M
Any
Retrieve
99.99
10. Subqueries can return...
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
ALL_OBJECTS
Multiple rows
DICT_COLUMNS
11. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Retrieve
Structured Query Language
Same
Black
12. _________ rows are not allowed in the relational model.
ANSI
Recursive
Orphan
FALSE
13. The same function can be used ______ in a SELECT statement.
Rounded edges
NATURAL JOIN
Logical unit of work
Twice
14. Explain what a static data dictionary view is and how it is used
Common column value
Logical unit of work
SUM
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.
15. SELECT * FROM instructor ORDER BY phone
ROLLBACK
Re-create
SELECT SYSDATE+1/96 - FROM dual
A correct statement
16. It is considered good form to put all SQL commands in...
MODIFY
RIGHT LEFT JOIN
RENAME just_two_more_weeks TO finally_i
All caps
17. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
Running a script file
LIKE
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
18. What is Oracle's most popular index storage structure?
Actual column
ANSI
B-Tree Index
Optional
19. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Data
Black
FALSE
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.
20. Returns rows if the condition is true for all the values in the list
Actual column
GROUP BY
All
Self-joins
21. The COUNT function uses the __________ wildcard.
DESC dict;
Results
Asterisk
4
22. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
The way NULL values are treated
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
Implicit conversion
Script
23. How many characters can you have using the VARCHAR data type?
Structured Query Language
The way NULL values are treated
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
4000
24. Explain the steps needed to run a script in SQL Developer
Surrogate key
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.
STORAGE
Scale
25. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Retrieve
VALUES clause of an INSERT statement
SELECT DISTINCT menu FROM restaurant
STORAGE
26. The using clause of the ANSI join syntax always assumes an...
DICT_COLUMNS
Equijoin and identical column names
Extra spaces
Static or dynamic
27. The ______ operator compares a list of values for equivalency
ANY
**** 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
Surrogate
2000
28. The term ____________ ___________ is used to express a join that satisfies the join condition.
When the table is small (unless your business rules require you too)
INNER JOIN
A correct statement
Correlated
29. What is the keyboard shortcut for the ROLLBACK command?
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
SYSDATE
RUN SCRIPT
F12
30. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
Running a script file
Any
DESC dict;
31. To join four tables - you must have at least _____ join conditions.
Three
Both MIN and MAX
**** 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
F12
32. A _________ subquery returns a single column with a single row
The way NULL values are treated
Scalar
SELECT DISTINCT menu FROM restaurant
Running a script file
33. Write the syntax to rename index just_two_more_weeks_i to finally_i
Leading-edge
DICTIONARY
UNION
RENAME just_two_more_weeks TO finally_i
34. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Non-matching rows
Semicolon or forward slash
DICT_COLUMNS
NATURAL JOIN
35. The query retrieves more than 5 to 15 percent of the rows
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Implicit conversion
DECODE
36. The COUNT function is useful for determining whether a table has...
SYSDATE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ROLLBACK
Data
37. The __________ operator is inclusive of the two values specified.
DICTIONARY
Details
UNION
BETWEEN
38. A calculation with a null always yields...
Another null
Optional
LIKE
Business problems
39. List the different types of data dictionary views.
RIGHT LEFT JOIN
USER_ - ALL_ - DBA_ - and V$
X
MODIFY
40. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Three
Equijoin and correlated subquery
Running a script file
SET clause of an UPDATE statement
41. Explain why constraints are used when building tables.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
42. What is the name of the key automatically generated from a sequence?
Run scripts
Surrogate key
ALL_OBJECTS
Testing functions
43. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.
VALUES
LIKE
DESC dict;
Re-create
44. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
12:00:00 A.M
MODIFY
STORAGE
Mathematical equations
45. To equijoin a table with another table involves matching the...
Common column value
V$
Self-joins
All caps
46. The ROWID pseudocolumn is not an ________- but it acts like one.
99.99
Static or dynamic
Actual column
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
47. PAGESIZE
SET clause of an UPDATE statement
Default is 14; when you use the default - you repeat the heading every 14 rows.
DD-MON-YY
Orphan
48. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
ADD_MONTHS function
Optional
Equijoin and correlated subquery
Precision
49. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Rounded edges
Equijoin and identical column names
COMMIT
RENAME just_two_more_weeks TO finally_i
50. The ALTER SESSION statement can change the session's...
Time zone
Command returns the number of records returned by a query.
Semicolon or forward slash
Crow's foot
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