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. The DUAL table can be used for...
Testing functions
Results
Null
99.99
2. 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
3. You can pass parameters from the operating system when ___________ in SQl*Plus
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
Equijoin
Running a script file
Self-joins
4. 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
Groups
Data
VALUES
5. To equijoin a table with another table involves matching the...
Common column value
Logical unit of work
When the table is small (unless your business rules require you too)
NATURAL JOIN
6. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Twice
NATURAL JOIN
Groups
The main components of a ROWID are the data object number - the number of the data block - the numbers of rows within the data block - and the data file number.
7. Another name for a data dictionary view is __________________ or _________________.
Surrogate key
FALSE
RIGHT LEFT JOIN
Static or dynamic
8. In a view you can give a column a different name than it has in the...
Non-matching rows
Scale
When the table is small (unless your business rules require you too)
Parent table
9. The COUNT function uses the __________ wildcard.
ANY
Asterisk
ALL_OBJECTS
VALUES clause of an INSERT statement
10. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
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
MINUS
Re-create
11. What is the tab in SQL Developer where data dictionary view information can be found?
RUN SCRIPT
Null
Details
+
12. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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
Crow's foot
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
SYSDATE
13. When you have issued a DELETE command - you can still ________ those rows and restore the information.
4
SYSDATE
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
Retrieve
14. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
UNION
Location of the file
Same
SELECT SYSDATE+1/96 - FROM dual
15. Explain the steps needed to run a script in SQL Developer
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.
DESC dict;
When the table is small (unless your business rules require you too)
FALSE
16. Which operator is most commonly used?
Has not changed the name
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
UNION
The indexed column is part of an expression. In this case - consider creating a function-based index instead
17. Write a statement that drops the index need_to_pass_i
Data
DROP INDEX need_to_pass_i
Semicolon or forward slash
FALSE
18. How many characters can be stored in the CHAR column/field?
DESC dict;
UNION operator
2000
DICT_COLUMNS
19. What is the data type you can use if you need an unlimited number of textual characters?
Asterisk
CLOB
@ or START
The way NULL values are treated
20. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
4
Scale
Mathematical equations
12:00:00 A.M
21. The _______ operator determines common rows.
ON
LENGTH
INTERSECT
ANY
22. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
Actual column
FALSE
DD-MON-YY
23. The _____________ clause determines how rows are grouped.
MODIFY
GROUP BY
IN ANY ALL SOME
Non-matching rows
24. The time zone displacement value indicates the time difference from _______.
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
UTC
SET clause of an UPDATE statement
25. Joins involving multiple columns must always follow the ____________ relationship path.
Structured Query Language
Scalar
Primary key/foreign key
Run scripts
26. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
FALSE
Parent table
UNION
27. A join across three tables can be expressed with the ________ join syntax.
ANSI
Data
DICTIONARY
Hide data
28. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.
When the table is small (unless your business rules require you too)
4000
Has not changed the name
Orphan
29. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Structured Query Language
Nested
Rounded edges
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
30. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Export Data
A correct statement
Self-joins
Rounded edges
31. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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.
32. What do views do that makes them so useful for security?
Hide data
Equijoin
SYSDATE
Surrogate
33. SQL*Plus is used more than SQL Developer when you need to...
Month ddth - yyyy
Run scripts
Precision
Committed
34. Explain how the SPOOL command is used and what program it can be used in.
2000
ANSI
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
Black
35. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
4
Run scripts
RENAME just_two_more_weeks TO finally_i
36. Checks whether any value in the list makes the condition true.
Black
+
Any
12:00:00 A.M
37. You can use the ________________ to subtract months from a given date.
Command returns the number of records returned by a query.
SELECT DISTINCT menu FROM restaurant
ADD_MONTHS function
The way NULL values are treated
38. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
ON
999999.9999
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
39. Self-joins are useful for performing comparisons and checking for ___________ in data.
Any
Inconsistencies
4000
UNION
40. 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.
B-Tree Index
TO_CHAR function
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.
VALUES
41. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
SYSDATE
GROUP BY
@ or START
Export Data
42. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
12:00:00 A.M
When the table is small (unless your business rules require you too)
X
Script
43. What is Oracle's most popular index storage structure?
B-Tree Index
LIKE
Logical unit of work
Script
44. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Asterisk
2000
Combine
X
45. __________________ inserts the current date and time.
4
SYSDATE
Logical unit of work
X
46. Which format mask displays December 31st - 1999?
VALUES clause of an INSERT statement
Has not changed the name
X
Month ddth - yyyy
47. What is the most common DATE format found in SQL?
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
BETWEEN
Precision
DD-MON-YY
48. UNION ALL does not sort - therefore it is less time consuming to use than the...
Equijoin and correlated subquery
UNION operator
Testing functions
Nested
49. How many characters can you have using the VARCHAR data type?
MODIFY
The main components of a ROWID are the data object number - the number of the data block - the numbers of rows within the data block - and the data file number.
Any
4000
50. SELECT * FROM instructor ORDER BY phone
BETWEEN
Primary key/foreign key
A correct statement
Logical unit of work
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