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. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
Results
Actual column
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
2. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
LIKE
SET clause of an UPDATE statement
Equijoin and correlated subquery
99.99
3. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Time zone
Results
FALSE
Equijoin and identical column names
4. __________________ inserts the current date and time.
SYSDATE
Implicit conversion
BETWEEN
MINUS
5. What are the main components of a ROWID?
Time zone
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
SUM
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.
6. What is Oracle's most popular index storage structure?
LIKE
Another null
B-Tree Index
Scale
7. When is it not a good idea to use an index?
Time zone
Location of the file
When the table is small (unless your business rules require you too)
2000
8. Which operator is most commonly used?
Business problems
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
UNION
9. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
B-Tree Index
Non-matching rows
RIGHT LEFT JOIN
TO_CHAR function
10. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Scale
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
Testing functions
ALL_OBJECTS
11. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Another null
RUN SCRIPT
A correct statement
Fractional seconds
12. The query retrieves more than 5 to 15 percent of the rows
ADD
SET clause of an UPDATE statement
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Retrieve
13. What is the name of the key automatically generated from a sequence?
Data
Details
Surrogate key
@ or START
14. The ________ operator cannot compare against a list of values.
LIKE
MODIFY
Black
**** 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
15. List the reasons that a subquery could not be unnested.
X
Logical unit of work
Leading-edge
Implicit conversion
16. 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?
All
DICTIONARY
X
LENGTH
17. How many characters can you have using the VARCHAR data type?
4000
DICTIONARY
ANY
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
18. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Non-matching rows
Precision
Rounded edges
SELECT DISTINCT menu FROM restaurant
19. The TRUNC function on a date without a format model truncates the timestamp to...
RUN SCRIPT
Results
12:00:00 A.M
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.
20. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
LIKE
RUN SCRIPT
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
21. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
SYSDATE
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.
DICT_COLUMNS
COMMIT
22. Which format mask displays December 31st - 1999?
Equijoin
Run scripts
Month ddth - yyyy
Logical unit of work
23. What do views do that makes them so useful for security?
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
Hide data
RENAME just_two_more_weeks TO finally_i
F12
24. The _____________ clause determines how rows are grouped.
DESC dict;
BETWEEN
Rounded edges
GROUP BY
25. To join four tables - you must have at least _____ join conditions.
Three
All
Scale
Details
26. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
ON
FALSE
MINUS
SET clause of an UPDATE statement
27. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
DD-MON-YY
VALUES clause of an INSERT statement
V$
Equijoin
28. You use the __________ keyword to change characteristics of a column.
Multiple rows
Implicit conversion
MODIFY
Surrogate
29. A _________ subquery returns a single column with a single row
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
CLOB
A correct statement
Scalar
30. Subqueries can return...
Multiple rows
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.
DECODE
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.
31. A join across three tables can be expressed with the ________ join syntax.
X
ANSI
@ or START
Rounded edges
32. When you have issued a DELETE command - you can still ________ those rows and restore the information.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
V$
Retrieve
Surrogate key
33. List the steps performed by a correlated subquery.
BETWEEN
Semicolon or forward slash
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
**** 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
34. _________________ relationships are always optional relationships.
Hide data
CLOB
2000
Recursive
35. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
IN ANY ALL SOME
Default is 14; when you use the default - you repeat the heading every 14 rows.
Correlated
FALSE
36. The _______ function adds values together for a group of rows.
MINUS
4
F12
SUM
37. The same function can be used ______ in a SELECT statement.
Twice
LIKE
Common column value
Nested
38. Explain the steps needed to run a script in SQL Developer
DD-MON-YY
Testing functions
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.
INNER JOIN
39. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Same
ALL_OBJECTS
RIGHT LEFT JOIN
X
40. What is the keyboard shortcut for the ROLLBACK command?
F12
USER_ - ALL_ - DBA_ - and V$
Self-joins
Inconsistencies
41. When you run a script in SQL*Plus you must give the...
Location of the file
Correlated
RIGHT LEFT JOIN
X
42. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Rounded edges
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.
Both MIN and MAX
NATURAL JOIN
43. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Common column value
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.
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.
Combine
44. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
Rounded edges
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
SUM
45. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
DECODE
INNER JOIN
46. How many characters can be stored in the CHAR column/field?
A correct statement
2000
Both MIN and MAX
Columns
47. Users can only see changes made to a database once they have been...
Multiple rows
STORAGE
Committed
Month ddth - yyyy
48. Explain how Substitution Variables are used when writing scripts.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Black
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.
4
49. 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
50. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Twice
MODIFY
Another null
VALUES clause of an INSERT statement
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