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. 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.
Multiple rows
RIGHT LEFT JOIN
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.
Columns
2. The _____________ clause determines how rows are grouped.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
GROUP BY
4000
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
3. 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.
Has not changed the name
Default is 14; when you use the default - you repeat the heading every 14 rows.
Structured Query Language
Twice
4. Match each of the SQL commands on the left with a verb from the list.
Recursive
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
B-Tree Index
Non-matching rows
5. To restart a sequence at a lower number - you can drop and ________ the sequence.
Semicolon or forward slash
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
Re-create
Columns
6. Joins involving multiple columns must always follow the ____________ relationship path.
Month ddth - yyyy
Non-matching rows
Primary key/foreign key
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.
7. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Testing functions
SET clause of an UPDATE statement
RENAME just_two_more_weeks TO finally_i
999999.9999
8. 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.
RENAME just_two_more_weeks TO finally_i
Results
VALUES
MODIFY
9. Checks whether any value in the list makes the condition true.
Any
**** 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
Location of the file
Scale
10. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
KEEP INDEX
DICTIONARY
Both MIN and MAX
11. 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?
DICTIONARY
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.
Running a script file
Default is 14; when you use the default - you repeat the heading every 14 rows.
12. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
ALL_OBJECTS
Combine
RENAME just_two_more_weeks TO finally_i
Export Data
13. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
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.
Correlated
INTERSECT
Semicolon or forward slash
14. 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
15. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
Any
USER_ - ALL_ - DBA_ - and V$
Equijoin and identical column names
16. 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
LIKE
VALUES
RENAME just_two_more_weeks TO finally_i
17. Explain what is found in the All Objects report folder in SQL Developer
X
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
When the table is small (unless your business rules require you too)
18. Explain what a static data dictionary view is and how it is used
Time zone
Inconsistencies
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.
DECODE
19. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
99.99
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.
Results
ROLLBACK
20. When you run a script in SQL*Plus you must give the...
GROUP BY
Location of the file
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
21. PAGESIZE
CLOB
Default is 14; when you use the default - you repeat the heading every 14 rows.
X
Hide data
22. Users can only see changes made to a database once they have been...
MINUS
Committed
Optional
Extra spaces
23. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
MODIFY
Implicit conversion
Scalar
24. The ______ depicts the M of a 1:M relationship.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
25. The _______ function adds values together for a group of rows.
SUM
TO_CHAR function
Orphan
Primary key/foreign key
26. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
MINUS
ANY
SET clause of an UPDATE statement
27. The __________ operator is inclusive of the two values specified.
BETWEEN
Run scripts
Primary key/foreign key
Parent table
28. Which operator is most commonly used?
Parent table
ANY
@ or START
UNION
29. The purpose of the HAVING clause is to eliminate___________.
Columns
Has not changed the name
Actual column
Groups
30. You use the _________ keyword to add columns or constraints to a table.
Location of the file
DICT_COLUMNS
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
ADD
31. A transaction is a...
Location of the file
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Logical unit of work
UNION operator
32. List the different types of data dictionary views.
DESC dict;
Equijoin
USER_ - ALL_ - DBA_ - and V$
SET clause of an UPDATE statement
33. The _______ operator determines common rows.
Running a script file
Three
Command returns the number of records returned by a query.
INTERSECT
34. The ______ operator compares a list of values for equivalency
Actual column
Location of the file
Scale
ANY
35. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
@ or START
SELECT DISTINCT menu FROM restaurant
NATURAL JOIN
Fractional seconds
36. The ___________ operator tests whether a matching row cannot be found.
SELECT DISTINCT menu FROM restaurant
SELECT SYSDATE+1/96 - FROM dual
X
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
37. What is the maximum value for a column defined as NUMBER(4 -2)?
Inconsistencies
99.99
Non-matching rows
UTC
38. Another name for a data dictionary view is __________________ or _________________.
Hide 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.
Static or dynamic
X
39. What is the tab in SQL Developer where data dictionary view information can be found?
RENAME just_two_more_weeks TO finally_i
X
DICT_COLUMNS
Details
40. What are the main components of a ROWID?
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
RUN SCRIPT
999999.9999
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.
41. List the steps performed by a correlated subquery.
RUN SCRIPT
**** 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
Logical unit of work
Precision
42. How many characters can you have using the VARCHAR data type?
UNION operator
B-Tree Index
4000
TO_CHAR function
43. What is the most common DATE format found in SQL?
Surrogate key
Semicolon or forward slash
DD-MON-YY
INNER JOIN
44. Oracle uses the outer join operator to indicate that nulls are shown for...
Run scripts
Three
Orphan
Non-matching rows
45. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
FALSE
Three
Leading-edge
46. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
4000
F12
Optional
47. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Any
DD-MON-YY
+
Scalar
48. What does SQL stand for?
ANSI
Non-matching rows
Structured Query Language
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
49. To join four tables - you must have at least _____ join conditions.
4
Twice
Three
Business problems
50. A calculation with a null always yields...
Nested
Another null
Leading-edge
COMMIT
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