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. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Actual column
Month ddth - yyyy
Precision
ALL_OBJECTS
2. What is the data type you can use if you need an unlimited number of textual characters?
Any
Export Data
Equijoin
CLOB
3. SELECT * FROM instructor ORDER BY phone
Leading-edge
Fractional seconds
Extra spaces
A correct statement
4. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Structured Query Language
999999.9999
COMMIT
Same
5. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
USER_ - ALL_ - DBA_ - and V$
VALUES clause of an INSERT statement
Results
6. The ________ operator cannot compare against a list of values.
99.99
LIKE
USER_ - ALL_ - DBA_ - and V$
Parent table
7. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Three
Results
Actual column
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.
8. 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?
Run scripts
Recursive
F12
DICTIONARY
9. You can use the ________________ to subtract months from a given date.
Groups
Location of the file
ADD_MONTHS function
Crow's foot
10. Returns rows if the condition is true for all the values in the list
Correlated
UTC
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
All
11. __________________ inserts the current date and time.
V$
X
Groups
SYSDATE
12. A join across three tables can be expressed with the ________ join syntax.
Semicolon or forward slash
Command returns the number of records returned by a query.
ANSI
Combine
13. The _______ function adds values together for a group of rows.
Three
X
Recursive
SUM
14. The ____________ command makes changes permanent.
COMMIT
Location of the file
Multiple rows
Semicolon or forward slash
15. What is the name of the key automatically generated from a sequence?
USER_ - ALL_ - DBA_ - and V$
Surrogate key
All caps
SET clause of an UPDATE statement
16. What is the main difference between the NOT EXISTS and the NOT IN operators?
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Testing functions
The way NULL values are treated
BETWEEN
17. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Recursive
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.
18. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
DD-MON-YY
999999.9999
X
Combine
19. Match each of the SQL commands on the left with a verb from the list.
Null
Surrogate
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Location of the file
20. Self-joins are useful for performing comparisons and checking for ___________ in data.
COMMIT
Another null
Inconsistencies
SELECT DISTINCT menu FROM restaurant
21. Subqueries can return...
Multiple rows
CLOB
Export Data
Structured Query Language
22. Explain how Substitution Variables are used when writing scripts.
Fractional seconds
SELECT SYSDATE+1/96 - FROM dual
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.
Parent table
23. A calculation with a null always yields...
V$
X
STORAGE
Another null
24. Write a statement for SQL*Plus that shows the dictionary.
Same
F12
DESC dict;
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
25. To restart a sequence at a lower number - you can drop and ________ the sequence.
Command returns the number of records returned by a query.
LIKE
SET clause of an UPDATE statement
Re-create
26. In a view you can give a column a different name than it has in the...
The way NULL values are treated
ROLLBACK
Time zone
Parent table
27. The purpose of the HAVING clause is to eliminate___________.
ROLLBACK
Semicolon or forward slash
+
Groups
28. The using clause of the ANSI join syntax always assumes an...
TO_CHAR function
Equijoin and identical column names
MINUS
STORAGE
29. Oracle uses the outer join operator to indicate that nulls are shown for...
IN ANY ALL SOME
Inconsistencies
SUM
Non-matching rows
30. The ROWID pseudocolumn is not an ________- but it acts like one.
DECODE
Actual column
CLOB
Time zone
31. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Export Data
BETWEEN
Has not changed the name
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.
32. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Orphan
VALUES clause of an INSERT statement
Another null
Script
33. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
Export 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.
Null
34. The ___________ operator tests whether a matching row cannot be found.
99.99
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
Retrieve
X
35. Comparison operators can compare multiple _________________.
Columns
Twice
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.
DESC dict;
36. The _______ operator determines common rows.
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
INTERSECT
Black
MODIFY
37. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
X
Leading-edge
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
38. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
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.
Logical unit of work
Semicolon or forward slash
+
39. What is the tab in SQL Developer where data dictionary view information can be found?
Details
Any
Black
SELECT DISTINCT menu FROM restaurant
40. Another name for a data dictionary view is __________________ or _________________.
Results
VALUES
Static or dynamic
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.
41. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
SUM
Month ddth - yyyy
Results
Fractional seconds
42. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Fractional seconds
SELECT SYSDATE+1/96 - FROM dual
Precision
4
43. The RTRIM function is useful for eliminating ________ in a string.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Extra spaces
B-Tree Index
ANSI
44. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
UNION operator
CLOB
Rounded edges
LENGTH
45. The focus of the logical data model is _____________
Business problems
Same
Recursive
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
46. What is the keyboard shortcut for the ROLLBACK command?
F12
Command returns the number of records returned by a query.
Combine
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.
47. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
VALUES clause of an INSERT statement
All
Crow's foot
Script
48. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
ADD
99.99
Hide data
Combine
49. When is it not a good idea to use an index?
Non-matching rows
When the table is small (unless your business rules require you too)
2000
Details
50. SQL*Plus is used more than SQL Developer when you need to...
Equijoin and correlated subquery
USER_ - ALL_ - DBA_ - and V$
Business problems
Run scripts
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