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. Write a statement for SQL*Plus that shows the dictionary.
Orphan
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
DESC dict;
Month ddth - yyyy
2. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ON
All
SELECT SYSDATE+1/96 - FROM dual
3. What do views do that makes them so useful for security?
Run scripts
RIGHT LEFT JOIN
Results
Hide data
4. A calculation with a null always yields...
X
Another null
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
4000
5. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
12:00:00 A.M
X
Testing functions
VALUES
6. Which operator is most commonly used?
Time zone
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
UNION
Self-joins
7. Subqueries can return...
B-Tree Index
Retrieve
Multiple rows
Columns
8. SELECT * FROM instructor ORDER BY phone
ADD
SYSDATE
Hide data
A correct statement
9. When you run a script in SQL*Plus you must give the...
ANSI
Location of the file
Equijoin
MINUS
10. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
VALUES clause of an INSERT statement
Data
SELECT DISTINCT menu FROM restaurant
Combine
11. You can use the ________________ to subtract months from a given date.
Business problems
Structured Query Language
DICT_COLUMNS
ADD_MONTHS function
12. The COUNT function uses the __________ wildcard.
DESC dict;
Testing functions
UTC
Asterisk
13. Explain the steps needed to run a script in SQL Developer
UTC
4
Run scripts
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.
14. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SET clause of an UPDATE statement
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
SELECT DISTINCT menu FROM restaurant
Retrieve
15. What is the first column of a composite index called?
Running a script file
V$
Leading-edge
Equijoin
16. When column names on the tables are different - you use the ______ condition.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
ON
Run scripts
Crow's foot
17. To join four tables - you must have at least _____ join conditions.
A correct statement
ADD_MONTHS function
Common column value
Three
18. Write a solution that adds 20 minutes to a given date.
X
Another null
Surrogate
SELECT SYSDATE+1/96 - FROM dual
19. __________________ inserts the current date and time.
Testing functions
All
RIGHT LEFT JOIN
SYSDATE
20. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
X
INTERSECT
Export Data
KEEP INDEX
21. Users can only see changes made to a database once they have been...
IN ANY ALL SOME
+
V$
Committed
22. The _______ function lets you perform if-then-else functionality with the SQL language.
B-Tree Index
DECODE
Crow's foot
Time zone
23. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
ALL_OBJECTS
B-Tree Index
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
VALUES clause of an INSERT statement
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. Comparison operators can compare multiple _________________.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Hide data
Extra spaces
Columns
26. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
NATURAL JOIN
Fractional seconds
Equijoin
ROLLBACK
27. What is the keyboard shortcut for the ROLLBACK command?
F12
USER_ - ALL_ - DBA_ - and V$
X
SYSDATE
28. Explain what a static data dictionary view is and how it is used
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.
Export Data
DICTIONARY
V$
29. The DUAL table can be used for...
Non-matching rows
Testing functions
Nested
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
30. To restart a sequence at a lower number - you can drop and ________ the sequence.
Month ddth - yyyy
Parent table
Re-create
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
31. In SQL Developer field names and table names are shown in the color _______.
Black
Export Data
CLOB
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
32. How many characters can you have using the VARCHAR data type?
ANSI
ADD
4000
Equijoin and identical column names
33. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Hide data
Both MIN and MAX
All caps
34. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Script
DICT_COLUMNS
Combine
Mathematical equations
35. Explicit data type conversion is preferable to Oracle's...
FALSE
Implicit conversion
Re-create
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
36. List the steps performed by a correlated subquery.
Non-matching rows
Testing functions
DD-MON-YY
**** 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
37. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Another null
USER_ - ALL_ - DBA_ - and V$
Scale
MODIFY
38. Converting a text literal to DATE format requires the use of the...
VALUES
Columns
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_CHAR function
39. The time zone displacement value indicates the time difference from _______.
Implicit conversion
UTC
X
Another null
40. The ____________ command makes changes permanent.
ADD_MONTHS function
COMMIT
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
Common column value
41. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
FALSE
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Leading-edge
42. SQL*Plus is used more than SQL Developer when you need to...
Primary key/foreign key
Run scripts
Mathematical equations
ANY
43. To equijoin a table with another table involves matching the...
B-Tree Index
Common column value
UNION
Structured Query Language
44. 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
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
TO_CHAR function
VALUES
45. A join across three tables can be expressed with the ________ join syntax.
DROP INDEX need_to_pass_i
ANSI
Results
Black
46. Returns rows if the condition is true for all the values in the list
Nested
Columns
All
A correct statement
47. List 6 Table-Related Menu Choices
Rounded edges
Static or dynamic
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
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
48. It is considered good form to put all SQL commands in...
Surrogate key
FALSE
All caps
Crow's foot
49. Which one of the following string functions tells you how many characters are in a string?
V$
Nested
LENGTH
Results
50. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
Asterisk
4000
Crow's foot
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