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 key that most database designers prefer and is chosen by the system is the _____________ key.
X
12:00:00 A.M
Surrogate
INNER JOIN
2. The ALTER SESSION statement can change the session's...
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
X
Time zone
Re-create
3. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Static or dynamic
Surrogate
X
4000
4. UNION ALL does not sort - therefore it is less time consuming to use than the...
TO_CHAR function
UNION operator
Any
Correlated
5. _________________ relationships are always optional relationships.
Any
Equijoin and identical column names
Recursive
Running a script file
6. 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.
ON
X
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
RIGHT LEFT JOIN
7. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
DD-MON-YY
VALUES
Semicolon or forward slash
Any
8. LINESIZE
Crow's foot
Nested
KEEP INDEX
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
9. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Static or dynamic
999999.9999
+
ANSI
10. To restart a sequence at a lower number - you can drop and ________ the sequence.
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.
STORAGE
99.99
Re-create
11. Returns rows if the condition is true for all the values in the list
STORAGE
Twice
LIKE
All
12. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
BETWEEN
All
KEEP INDEX
13. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
Default is 14; when you use the default - you repeat the heading every 14 rows.
UNION
The way NULL values are treated
14. The term ____________ ___________ is used to express a join that satisfies the join condition.
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.
DICT_COLUMNS
Crow's foot
INNER JOIN
15. You can use the ________________ to subtract months from a given date.
Black
BETWEEN
Location of the file
ADD_MONTHS function
16. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
DROP INDEX need_to_pass_i
Precision
B-Tree Index
Scale
17. Explain how Substitution Variables are used when writing scripts.
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.
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
SET clause of an UPDATE statement
Groups
18. Which format mask displays December 31st - 1999?
Surrogate key
Month ddth - yyyy
VALUES
Optional
19. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
NATURAL JOIN
USER_ - ALL_ - DBA_ - and V$
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.
20. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
DECODE
Correlated
Business problems
MINUS
21. The __________ operator is inclusive of the two values specified.
BETWEEN
Twice
Run scripts
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
22. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Primary key/foreign key
Results
VALUES clause of an INSERT statement
23. A transaction is a...
Logical unit of work
LIKE
4000
+
24. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
F12
99.99
Twice
25. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
Any
X
F12
26. SELECT * FROM instructor ORDER BY phone
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.
All
A correct statement
Asterisk
27. What is the main difference between the NOT EXISTS and the NOT IN operators?
X
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
BETWEEN
The way NULL values are treated
28. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
NATURAL JOIN
VALUES clause of an INSERT statement
Running a script file
DECODE
29. Checks whether any value in the list makes the condition true.
ADD_MONTHS function
Any
Multiple rows
Precision
30. What do views do that makes them so useful for security?
Hide data
Non-matching rows
DICT_COLUMNS
Results
31. Write a solution that adds 20 minutes to a given date.
UNION
SELECT SYSDATE+1/96 - FROM dual
Precision
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
32. How many characters can be stored in the CHAR column/field?
4
2000
+
Recursive
33. The _______ function lets you perform if-then-else functionality with the SQL language.
Any
DECODE
Black
Business problems
34. 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
35. What is the name of the key automatically generated from a sequence?
Surrogate key
Details
999999.9999
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
36. 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
Recursive
Logical unit of work
Self-joins
37. When you run a script in SQL*Plus you must give the...
Equijoin and identical column names
Location of the file
Data
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
38. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
999999.9999
Combine
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
39. To join four tables - you must have at least _____ join conditions.
DD-MON-YY
DESC dict;
Three
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
40. The focus of the logical data model is _____________
FALSE
**** 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
Business problems
Null
41. 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.
Recursive
The way NULL values are treated
@ or START
Has not changed the name
42. _________ rows are not allowed in the relational model.
VALUES
Orphan
Mathematical equations
MODIFY
43. Explain what a static data dictionary view is and how it is used
Equijoin
Run scripts
F12
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.
44. What is the most common DATE format found in SQL?
UTC
Running a script file
DD-MON-YY
Both MIN and MAX
45. You use the __________ keyword to change characteristics of a column.
B-Tree 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
MODIFY
The indexed column is part of an expression. In this case - consider creating a function-based index instead
46. The ___________ operator tests whether a matching row cannot be found.
X
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
STORAGE
Combine
47. Which one of the following string functions tells you how many characters are in a string?
X
V$
LENGTH
Same
48. The purpose of the HAVING clause is to eliminate___________.
Groups
LENGTH
DESC dict;
Semicolon or forward slash
49. Self-joins are useful for performing comparisons and checking for ___________ in data.
All
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.
Data
Inconsistencies
50. In SQL Developer field names and table names are shown in the color _______.
**** 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
Black
Month ddth - yyyy
SUM