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. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Multiple rows
IN ANY ALL SOME
UTC
2. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
SYSDATE
Time zone
BETWEEN
3. To restart a sequence at a lower number - you can drop and ________ the sequence.
Command returns the number of records returned by a query.
Re-create
Business problems
IN ANY ALL SOME
4. The _______ function adds values together for a group of rows.
STORAGE
SUM
RUN SCRIPT
Equijoin and correlated subquery
5. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Both MIN and MAX
When the table is small (unless your business rules require you too)
Rounded edges
Combine
6. The _______ function lets you perform if-then-else functionality with the SQL language.
Twice
DECODE
ANSI
DESC dict;
7. It is considered good form to put all SQL commands in...
FALSE
SET clause of an UPDATE statement
Equijoin and correlated subquery
All caps
8. You use the _________ keyword to add columns or constraints to a table.
Any
MINUS
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
ADD
9. What is the maximum value for a column defined as NUMBER(4 -2)?
12:00:00 A.M
X
99.99
Month ddth - yyyy
10. Explain what is found in the All Objects report folder in SQL Developer
Details
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
RIGHT LEFT JOIN
SUM
11. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Data
Precision
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
BETWEEN
12. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
Structured Query Language
DESC dict;
Orphan
13. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Combine
B-Tree Index
@ or START
14. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
LIKE
Orphan
A correct statement
15. The _____________ clause determines how rows are grouped.
ANY
GROUP BY
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
SELECT DISTINCT menu FROM restaurant
16. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
IN ANY ALL SOME
NATURAL JOIN
X
Month ddth - yyyy
17. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Three
+
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Asterisk
18. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Mathematical equations
Parent table
COMMIT
Command returns the number of records returned by a query.
19. The COUNT function is useful for determining whether a table has...
SUM
X
Data
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
20. 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.
DICT_COLUMNS
Optional
V$
21. You can use the ________________ to subtract months from a given date.
FALSE
ADD_MONTHS function
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
DD-MON-YY
22. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Primary key/foreign key
User-defined reports
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
Groups
23. Match each of the SQL commands on the left with a verb from the list.
UNION operator
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
SELECT SYSDATE+1/96 - FROM dual
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
24. The ______ operator compares a list of values for equivalency
ANY
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Three
99.99
25. The ________ operator cannot compare against a list of values.
Rounded edges
Leading-edge
LIKE
Asterisk
26. A _________ subquery returns a single column with a single row
B-Tree Index
Nested
Primary key/foreign key
Scalar
27. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
Structured Query Language
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.
KEEP INDEX
28. The query retrieves more than 5 to 15 percent of the rows
Retrieve
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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
B-Tree Index
29. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Mathematical equations
LIKE
Twice
Correlated
30. How many characters can be stored in the CHAR column/field?
VALUES
Scalar
All
2000
31. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
999999.9999
Non-matching rows
Run scripts
32. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Twice
DICTIONARY
SELECT DISTINCT menu FROM restaurant
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
33. UNION ALL does not sort - therefore it is less time consuming to use than the...
Actual column
Results
UNION operator
VALUES
34. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Recursive
KEEP INDEX
INTERSECT
SELECT DISTINCT menu FROM restaurant
35. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
Details
INTERSECT
Twice
36. List 4 aggregate functions
RUN SCRIPT
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
999999.9999
SET clause of an UPDATE statement
37. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
COMMIT
RENAME just_two_more_weeks TO finally_i
MINUS
Run scripts
38. Checks whether any value in the list makes the condition true.
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
Running a script file
12:00:00 A.M
39. The purpose of the HAVING clause is to eliminate___________.
Precision
Groups
SUM
STORAGE
40. The same function can be used ______ in a SELECT statement.
LENGTH
Surrogate key
Twice
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
41. SELECT * FROM instructor ORDER BY phone
Combine
A correct statement
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.
Nested
42. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
SUM
Script
INNER JOIN
STORAGE
43. When you run a script in SQL*Plus you must give the...
ANSI
Location of the file
USER_ - ALL_ - DBA_ - and V$
Export Data
44. Another name for a data dictionary view is __________________ or _________________.
**** 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
Equijoin and identical column names
GROUP BY
45. Dynamic views begin with a ___________.
Retrieve
GROUP BY
V$
Mathematical equations
46. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
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
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
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.
47. The ROWID pseudocolumn is not an ________- but it acts like one.
FALSE
Any
Actual column
Testing functions
48. SQL*Plus is used more than SQL Developer when you need to...
Semicolon or forward slash
Run scripts
Equijoin and correlated subquery
Both MIN and MAX
49. A calculation with a null always yields...
Another null
Optional
DESC dict;
LENGTH
50. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Both MIN and MAX
Surrogate
999999.9999
Parent table
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