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. List the different types of data dictionary views.
DICT_COLUMNS
Rounded edges
USER_ - ALL_ - DBA_ - and V$
Null
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. What is the main difference between the NOT EXISTS and the NOT IN operators?
Hide data
Precision
The way NULL values are treated
FALSE
4. Checks whether any value in the list makes the condition true.
Any
Combine
X
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
5. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
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
ALL_OBJECTS
Optional
6. The _______ function lets you perform if-then-else functionality with the SQL language.
INTERSECT
Inconsistencies
Results
DECODE
7. Checks whether any value in the list makes the condition true.
ANSI
Any
Data
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
8. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Black
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
MINUS
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
9. The term ____________ ___________ is used to express a join that satisfies the join condition.
Command returns the number of records returned by a query.
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.
MODIFY
INNER JOIN
10. The key that most database designers prefer and is chosen by the system is the _____________ key.
ROLLBACK
Mathematical equations
Surrogate
12:00:00 A.M
11. A _________ subquery returns a single column with a single row
Non-matching rows
Scalar
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Precision
12. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Extra spaces
X
Actual column
INTERSECT
13. The COUNT function uses the __________ wildcard.
DESC dict;
Asterisk
SUM
Non-matching rows
14. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
ADD
COMMIT
+
Parent table
15. __________________ inserts the current date and time.
SYSDATE
Primary key/foreign key
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-defined reports
16. A calculation with a null always yields...
DECODE
All
Null
Another null
17. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
RENAME just_two_more_weeks TO finally_i
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
18. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
CLOB
User-defined reports
**** 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
All caps
19. What is the tab in SQL Developer where data dictionary view information can be found?
LENGTH
Export Data
Details
DD-MON-YY
20. SQL*Plus is used more than SQL Developer when you need to...
ROLLBACK
When the table is small (unless your business rules require you too)
Run scripts
VALUES
21. It is considered good form to put all SQL commands in...
Recursive
TO_CHAR function
MODIFY
All caps
22. Comparison operators can compare multiple _________________.
X
INNER JOIN
Columns
Retrieve
23. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Columns
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
Script
All caps
24. 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
Groups
User-defined reports
99.99
25. Subqueries can return...
LENGTH
CLOB
Multiple rows
BETWEEN
26. Explain in detail the impact of INDEXES and how they are used by Oracle.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
LIKE
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.
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
27. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Self-joins
Semicolon or forward slash
ANY
Month ddth - yyyy
28. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Equijoin and identical column names
ADD
+
SELECT DISTINCT menu FROM restaurant
29. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
Any
Surrogate key
SELECT SYSDATE+1/96 - FROM dual
30. The ALTER SESSION statement can change the session's...
DICTIONARY
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.
Time zone
Parent table
31. What is the name of the key automatically generated from a sequence?
UTC
Twice
Re-create
Surrogate key
32. Returns rows if the condition is true for all the values in the list
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.
All
Fractional seconds
4000
33. The __________ operator is inclusive of the two values specified.
STORAGE
ADD
User-defined reports
BETWEEN
34. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
SET clause of an UPDATE statement
Optional
VALUES clause of an INSERT statement
35. _________ rows are not allowed in the relational model.
DD-MON-YY
Re-create
F12
Orphan
36. The TRUNC function on a date without a format model truncates the timestamp to...
DICTIONARY
ADD_MONTHS function
Orphan
12:00:00 A.M
37. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Rounded edges
USER_ - ALL_ - DBA_ - and V$
Mathematical equations
Any
38. The time zone displacement value indicates the time difference from _______.
Semicolon or forward slash
UTC
B-Tree Index
BETWEEN
39. 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.
RIGHT LEFT JOIN
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.
Default is 14; when you use the default - you repeat the heading every 14 rows.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
40. List 4 aggregate functions
Multiple rows
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
RUN SCRIPT
Command returns the number of records returned by a query.
41. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Results
SYSDATE
Has not changed the name
KEEP INDEX
42. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
Time zone
B-Tree Index
Run scripts
43. To equijoin a table with another table involves matching the...
Common column value
ALL_OBJECTS
Location of the file
CLOB
44. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
BETWEEN
INTERSECT
FALSE
45. List 6 Table-Related Menu Choices
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
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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
46. 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.
SET clause of an UPDATE statement
X
FALSE
Self-joins
47. The _______ operator determines common rows.
INTERSECT
Primary key/foreign key
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
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
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
Inconsistencies
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.
Static or dynamic
49. Write a solution that adds 20 minutes to a given date.
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
BETWEEN
SELECT SYSDATE+1/96 - FROM dual
99.99
50. When column names on the tables are different - you use the ______ condition.
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.
ON
Committed
SUM
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