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 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.
Multiple rows
VALUES
2000
RENAME just_two_more_weeks TO finally_i
2. __________________ inserts the current date and time.
User-defined reports
ANY
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.
SYSDATE
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
Nested
RUN SCRIPT
Inconsistencies
4. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
Both MIN and MAX
X
DD-MON-YY
5. What is the most common DATE format found in SQL?
**** 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
DD-MON-YY
MINUS
Has not changed the name
6. 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.
Has not changed the name
The indexed column is part of an expression. In this case - consider creating a function-based index instead
FALSE
Null
7. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
F12
Parent table
DICT_COLUMNS
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
8. The _______ function adds values together for a group of rows.
SUM
X
Surrogate key
DROP INDEX need_to_pass_i
9. The _____________ clause determines how rows are grouped.
GROUP BY
ANSI
Actual column
Both MIN and MAX
10. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
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
Crow's foot
Script
DICT_COLUMNS
11. Match each of the SQL commands on the left with a verb from the list.
Time zone
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
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
LIKE
12. The ____________ command makes changes permanent.
All
COMMIT
ANY
Same
13. How many characters can you have using the VARCHAR data type?
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
Asterisk
4000
14. Queries that are found in parentheses are done first - just as in the order of operations when doing...
+
USER_ - ALL_ - DBA_ - and V$
ANSI
Mathematical equations
15. To restart a sequence at a lower number - you can drop and ________ the sequence.
Self-joins
Re-create
Recursive
RUN SCRIPT
16. What is the name of the key automatically generated from a sequence?
Equijoin and correlated subquery
Results
999999.9999
Surrogate key
17. _________________ relationships are always optional relationships.
UTC
Export Data
RENAME just_two_more_weeks TO finally_i
Recursive
18. You use the __________ keyword to change characteristics of a column.
Same
Has not changed the name
MINUS
MODIFY
19. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Actual column
NATURAL JOIN
SELECT SYSDATE+1/96 - FROM dual
X
20. How many characters can be stored in the CHAR column/field?
ROLLBACK
RUN SCRIPT
2000
MINUS
21. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Inconsistencies
Equijoin and correlated subquery
X
999999.9999
22. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
TO_CHAR function
Details
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
STORAGE
23. The ALTER SESSION statement can change the session's...
Nested
ANY
Hide data
Time zone
24. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
LENGTH
RUN SCRIPT
Run scripts
Fractional seconds
25. Explain the steps needed to run a script in SQL Developer
Both MIN and MAX
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.
Actual column
Results
26. What do views do that makes them so useful for security?
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Scale
Hide data
Mathematical equations
27. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Parent table
99.99
Script
DICT_COLUMNS
28. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
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.
Time zone
Hide data
Scale
29. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
SET clause of an UPDATE statement
Leading-edge
999999.9999
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
30. Explicit data type conversion is preferable to Oracle's...
Logical unit of work
Extra spaces
Common column value
Implicit conversion
31. What is Oracle's most popular index storage structure?
BETWEEN
UNION
B-Tree Index
Structured Query Language
32. The DUAL table can be used for...
Recursive
Testing functions
Asterisk
GROUP BY
33. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
Surrogate key
KEEP INDEX
Another null
34. Subqueries can return...
Multiple rows
Testing functions
Surrogate
VALUES
35. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
Running a script file
VALUES
X
36. Converting a text literal to DATE format requires the use of the...
Non-matching rows
DD-MON-YY
TO_CHAR function
Correlated
37. List the steps performed by a correlated subquery.
**** 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
Run scripts
ANSI
Correlated
38. The COUNT function is useful for determining whether a table has...
MODIFY
Data
ALL_OBJECTS
Null
39. To join four tables - you must have at least _____ join conditions.
A correct statement
SET clause of an UPDATE statement
Three
All
40. When is it not a good idea to use an index?
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
When the table is small (unless your business rules require you too)
Retrieve
Committed
41. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Data
SET clause of an UPDATE statement
BETWEEN
All caps
42. 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
43. The ROWID pseudocolumn is not an ________- but it acts like one.
Re-create
RUN SCRIPT
ADD_MONTHS function
Actual column
44. What is the data type you can use if you need an unlimited number of textual characters?
BETWEEN
Three
CLOB
LIKE
45. Joins involving multiple columns must always follow the ____________ relationship path.
Fractional seconds
Columns
Primary key/foreign key
Precision
46. UNION ALL does not sort - therefore it is less time consuming to use than the...
BETWEEN
UNION operator
Semicolon or forward slash
Columns
47. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ADD_MONTHS function
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
ROLLBACK
48. The query retrieves more than 5 to 15 percent of the rows
99.99
DESC dict;
The indexed column is part of an expression. In this case - consider creating a function-based index instead
**** 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
49. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Multiple rows
V$
Groups
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
50. To equijoin a table with another table involves matching the...
Crow's foot
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Common column value
Rounded edges
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