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. List 6 Table-Related Menu Choices
4
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ANY
Has not changed the name
2. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
FALSE
Common column value
ROLLBACK
Extra spaces
3. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
+
B-Tree Index
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
Any
4. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
SYSDATE
Mathematical equations
UTC
5. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Same
ALL_OBJECTS
ANY
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.
6. The focus of the logical data model is _____________
Rounded edges
Script
Columns
Business problems
7. What is the most common DATE format found in SQL?
IN ANY ALL SOME
INNER JOIN
DD-MON-YY
V$
8. ____________ are useful for analyzing and exploring the relationships within your data
NATURAL JOIN
ADD
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Self-joins
9. In SQL Developer field names and table names are shown in the color _______.
SELECT DISTINCT menu FROM restaurant
FALSE
Black
BETWEEN
10. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
ROLLBACK
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Semicolon or forward slash
VALUES
11. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
BETWEEN
Committed
Time zone
12. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
MODIFY
Scalar
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. NUMBER functions can be...
Testing functions
Committed
4000
Nested
14. Explain how the SPOOL command is used and what program it can be used in.
All
NATURAL JOIN
Location of the file
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
15. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
STORAGE
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
User-defined reports
Export Data
16. 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
Semicolon or forward slash
Location of the file
Month ddth - yyyy
17. What is Oracle's most popular index storage structure?
+
Surrogate key
B-Tree Index
Common column value
18. The COUNT function uses the __________ wildcard.
MODIFY
DD-MON-YY
UNION operator
Asterisk
19. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Both MIN and MAX
Hide data
TO_CHAR function
FALSE
20. Explain what a static data dictionary view is and how it is used
4000
Asterisk
Export Data
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.
21. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
A correct statement
Retrieve
X
22. Users can only see changes made to a database once they have been...
B-Tree Index
Committed
USER_ - ALL_ - DBA_ - and V$
Details
23. LINESIZE
Running a script file
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Logical unit of work
2000
24. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Testing functions
@ or START
Null
Default is 14; when you use the default - you repeat the heading every 14 rows.
25. You can use the ________________ to subtract months from a given date.
Data
ADD_MONTHS function
Scalar
When the table is small (unless your business rules require you too)
26. How many characters can you have using the VARCHAR data type?
4000
COMMIT
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
DD-MON-YY
27. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
When the table is small (unless your business rules require you too)
Three
Combine
The indexed column is part of an expression. In this case - consider creating a function-based index instead
28. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Retrieve
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
All caps
USER_ - ALL_ - DBA_ - and V$
29. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
GROUP BY
TO_CHAR function
Precision
V$
30. The ____________ command makes changes permanent.
COMMIT
Twice
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
UTC
31. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Location of the file
KEEP INDEX
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
Default is 14; when you use the default - you repeat the heading every 14 rows.
32. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Time zone
INNER JOIN
Has not changed the name
Scale
33. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
Common column value
ON
BETWEEN
34. The key that most database designers prefer and is chosen by the system is the _____________ key.
ALL_OBJECTS
Correlated
Surrogate
@ or START
35. What is the keyboard shortcut for the ROLLBACK command?
F12
Running a script file
Precision
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.
36. Another name for a data dictionary view is __________________ or _________________.
Static or dynamic
Self-joins
DD-MON-YY
X
37. The term ____________ ___________ is used to express a join that satisfies the join condition.
UNION operator
Recursive
4
INNER JOIN
38. UNION ALL does not sort - therefore it is less time consuming to use than the...
KEEP INDEX
DROP INDEX need_to_pass_i
INTERSECT
UNION operator
39. Which operator is most commonly used?
CLOB
UTC
UNION
Correlated
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 ____________
Equijoin and correlated subquery
Both MIN and MAX
Black
All
41. To restart a sequence at a lower number - you can drop and ________ the sequence.
Re-create
Any
Optional
X
42. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
F12
Groups
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.
43. What is the maximum value for a column defined as NUMBER(4 -2)?
12:00:00 A.M
99.99
Equijoin and correlated subquery
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
44. What does SQL stand for?
Structured Query Language
Testing functions
99.99
The indexed column is part of an expression. In this case - consider creating a function-based index instead
45. Dynamic views begin with a ___________.
NATURAL JOIN
V$
UNION operator
B-Tree Index
46. You use the __________ keyword to change characteristics of a column.
Export Data
ADD
MODIFY
Equijoin
47. _________________ relationships are always optional relationships.
Recursive
DROP INDEX need_to_pass_i
LENGTH
Location of the file
48. A join across three tables can be expressed with the ________ join syntax.
V$
ANSI
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.
99.99
49. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.
FALSE
Scalar
Running a script file
ON
50. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
Precision
RIGHT LEFT JOIN
ROLLBACK
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