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. PAGESIZE
V$
Default is 14; when you use the default - you repeat the heading every 14 rows.
12:00:00 A.M
Columns
2. To equijoin a table with another table involves matching the...
SELECT SYSDATE+1/96 - FROM dual
SELECT DISTINCT menu FROM restaurant
KEEP INDEX
Common column value
3. List the steps performed by a correlated subquery.
Leading-edge
Fractional seconds
Details
**** 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
4. In a view you can give a column a different name than it has in the...
Parent table
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
Combine
SELECT SYSDATE+1/96 - FROM dual
5. __________________ inserts the current date and time.
Details
DECODE
Testing functions
SYSDATE
6. A calculation with a null always yields...
2000
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
Another null
DESC dict;
7. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
User-defined reports
Black
KEEP INDEX
Extra spaces
8. Oracle uses the outer join operator to indicate that nulls are shown for...
Month ddth - yyyy
Another null
99.99
Non-matching rows
9. Another name for a data dictionary view is __________________ or _________________.
Structured Query Language
RENAME just_two_more_weeks TO finally_i
Static or dynamic
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
10. The time zone displacement value indicates the time difference from _______.
UTC
NATURAL JOIN
Three
Data
11. Explain what is found in the All Objects report folder in SQL Developer
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Structured Query Language
UTC
Actual column
12. How many characters can you have using the VARCHAR data type?
Equijoin and correlated subquery
4000
Leading-edge
Groups
13. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
INTERSECT
Semicolon or forward slash
Extra spaces
Running a script file
14. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
STORAGE
99.99
BETWEEN
Same
15. What is the most common DATE format found in SQL?
DD-MON-YY
MINUS
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.
INNER JOIN
16. The _____________ clause determines how rows are grouped.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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.
GROUP BY
@ or START
17. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
DESC dict;
Fractional seconds
RENAME just_two_more_weeks TO finally_i
18. 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
CLOB
Mathematical equations
VALUES clause of an INSERT statement
19. Write a statement that drops the index need_to_pass_i
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.
Testing functions
LENGTH
DROP INDEX need_to_pass_i
20. The _______ function adds values together for a group of rows.
SUM
B-Tree Index
Equijoin
Another null
21. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
SYSDATE
Inconsistencies
MINUS
22. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
Surrogate key
Command returns the number of records returned by a query.
RENAME just_two_more_weeks TO finally_i
23. Explain the steps needed to run a script in SQL Developer
LIKE
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.
Leading-edge
F12
24. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
UNION
Month ddth - yyyy
Extra spaces
25. Returns rows if the condition is true for all the values in the list
ON
All
Non-matching rows
Has not changed the name
26. When you have issued a DELETE command - you can still ________ those rows and restore the information.
CLOB
ANY
STORAGE
Retrieve
27. List the different types of data dictionary views.
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
USER_ - ALL_ - DBA_ - and V$
Fractional seconds
DESC dict;
28. The ______ operator compares a list of values for equivalency
X
ANSI
Script
ANY
29. A transaction is a...
Logical unit of work
Multiple rows
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Crow's foot
30. 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
DD-MON-YY
X
INTERSECT
31. LINESIZE
DICT_COLUMNS
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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.
Correlated
32. 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?
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.
12:00:00 A.M
Running a script file
DICTIONARY
33. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
+
UNION operator
Orphan
34. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Recursive
Inconsistencies
ON
ALL_OBJECTS
35. Users can only see changes made to a database once they have been...
Actual column
Structured Query Language
Combine
Committed
36. Which operator is most commonly used?
UNION
Implicit conversion
Surrogate
ANY
37. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
ROLLBACK
TO_CHAR function
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
Inconsistencies
38. 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
Scale
Multiple rows
ALL_OBJECTS
39. The COUNT function uses the __________ wildcard.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
When the table is small (unless your business rules require you too)
DICTIONARY
Asterisk
40. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Rounded edges
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.
Another null
Surrogate key
41. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
ROLLBACK
All
IN ANY ALL SOME
VALUES
42. When column names on the tables are different - you use the ______ condition.
ON
X
STORAGE
Equijoin and correlated subquery
43. A join across three tables can be expressed with the ________ join syntax.
Same
Equijoin and correlated subquery
RENAME just_two_more_weeks TO finally_i
ANSI
44. To join four tables - you must have at least _____ join conditions.
DD-MON-YY
Any
Parent table
Three
45. The purpose of the HAVING clause is to eliminate___________.
ANSI
Groups
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
Command returns the number of records returned by a query.
46. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
Null
Both MIN and MAX
ADD_MONTHS function
47. 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
48. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
RENAME just_two_more_weeks TO finally_i
FALSE
LENGTH
Groups
49. The RTRIM function is useful for eliminating ________ in a string.
Extra spaces
Optional
Asterisk
Logical unit of work
50. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
ALL_OBJECTS
DICT_COLUMNS
Structured Query Language
Another null
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