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 _______ function lets you perform if-then-else functionality with the SQL language.
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
Nested
X
DECODE
2. Which format mask displays December 31st - 1999?
X
VALUES clause of an INSERT statement
Month ddth - yyyy
999999.9999
3. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
VALUES clause of an INSERT statement
Surrogate key
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
4. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
COMMIT
ROLLBACK
4000
Command returns the number of records returned by a query.
5. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
DESC dict;
Correlated
SUM
Equijoin
6. In SQL Developer field names and table names are shown in the color _______.
SET clause of an UPDATE statement
ON
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
7. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Asterisk
Committed
X
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
8. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
DICTIONARY
IN ANY ALL SOME
Equijoin and identical column names
Command returns the number of records returned by a query.
9. The ____________ command makes changes permanent.
DROP INDEX need_to_pass_i
ADD_MONTHS function
The indexed column is part of an expression. In this case - consider creating a function-based index instead
COMMIT
10. The ______ operator compares a list of values for equivalency
ANY
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
RUN SCRIPT
Static or dynamic
11. The same function can be used ______ in a SELECT statement.
Month ddth - yyyy
Twice
DECODE
RIGHT LEFT JOIN
12. 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
13. 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.
Surrogate
RIGHT LEFT JOIN
ADD_MONTHS function
Location of the file
14. The _______ function adds values together for a group of rows.
SUM
Optional
Inconsistencies
Logical unit of work
15. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Combine
COMMIT
Precision
Parent table
16. To restart a sequence at a lower number - you can drop and ________ the sequence.
INNER JOIN
Re-create
Leading-edge
Hide data
17. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
UNION operator
CLOB
Scale
Optional
18. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
STORAGE
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
DECODE
Combine
19. Write a solution that adds 20 minutes to a given date.
X
SELECT SYSDATE+1/96 - FROM dual
Scale
Orphan
20. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
DECODE
RENAME just_two_more_weeks TO finally_i
SUM
Results
21. _________________ relationships are always optional relationships.
Recursive
ADD
Same
Details
22. List the different types of data dictionary views.
Running a script file
Scale
+
USER_ - ALL_ - DBA_ - and V$
23. The __________ operator is inclusive of the two values specified.
The way NULL values are treated
Recursive
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
BETWEEN
24. The purpose of the HAVING clause is to eliminate___________.
Structured Query Language
Columns
Groups
Same
25. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Rounded edges
Black
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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.
26. What is the keyboard shortcut for the ROLLBACK command?
RIGHT LEFT JOIN
Scale
999999.9999
F12
27. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
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.
+
MODIFY
Twice
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.
Has not changed the name
999999.9999
LIKE
ON
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
Scalar
FALSE
ON
30. PAGESIZE
Hide data
Default is 14; when you use the default - you repeat the heading every 14 rows.
Retrieve
Any
31. The ROWID pseudocolumn is not an ________- but it acts like one.
4
DROP INDEX need_to_pass_i
Actual column
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
32. Another name for a data dictionary view is __________________ or _________________.
SELECT DISTINCT menu FROM restaurant
Static or dynamic
Structured Query Language
ADD
33. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
Logical unit of work
NATURAL JOIN
4000
34. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Parent table
Mathematical equations
NATURAL JOIN
Columns
35. SQL*Plus is used more than SQL Developer when you need to...
B-Tree Index
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.
ADD
Run scripts
36. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Same
IN ANY ALL SOME
KEEP INDEX
Primary key/foreign key
37. Comparison operators can compare multiple _________________.
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
X
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Columns
38. Oracle uses the outer join operator to indicate that nulls are shown for...
Inconsistencies
Non-matching rows
Leading-edge
A correct statement
39. It is considered good form to put all SQL commands in...
All caps
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Primary key/foreign key
Command returns the number of records returned by a query.
40. The TRUNC function on a date without a format model truncates the timestamp to...
Asterisk
Equijoin
Recursive
12:00:00 A.M
41. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Re-create
DICT_COLUMNS
Run scripts
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.
42. Users can only see changes made to a database once they have been...
Extra spaces
When the table is small (unless your business rules require you too)
Committed
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.
43. 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.
ON
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
Surrogate
44. The _______ operator determines common rows.
INTERSECT
SYSDATE
Export Data
All
45. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Semicolon or forward slash
MINUS
Self-joins
Another null
46. What do views do that makes them so useful for security?
Hide data
Precision
SUM
Non-matching rows
47. What is the most common DATE format found in SQL?
DD-MON-YY
Black
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.
INTERSECT
48. 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
Self-joins
Month ddth - yyyy
Business problems
49. Explain how the SPOOL command is used and what program it can be used in.
Precision
A correct statement
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
SUM
50. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
999999.9999
Both MIN and MAX
ROLLBACK
DICT_COLUMNS
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