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. To equijoin a table with another table involves matching the...
RIGHT LEFT JOIN
X
Mathematical equations
Common column value
2. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Structured Query Language
SUM
Combine
Null
3. A _________ subquery returns a single column with a single row
Re-create
Scalar
Combine
All caps
4. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
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.
Command returns the number of records returned by a query.
Scale
Nested
5. Dynamic views begin with a ___________.
Groups
V$
SELECT SYSDATE+1/96 - FROM dual
Parent table
6. Which one of the following string functions tells you how many characters are in a string?
All
Primary key/foreign key
User-defined reports
LENGTH
7. Converting a text literal to DATE format requires the use of the...
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
When the table is small (unless your business rules require you too)
ANY
TO_CHAR function
8. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Recursive
Re-create
Null
FALSE
9. In SQL Developer field names and table names are shown in the color _______.
999999.9999
X
Running a script file
Black
10. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Another null
Equijoin and correlated subquery
Extra spaces
@ or START
11. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
Scale
X
X
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. Explain the steps needed to run a script in SQL Developer
B-Tree Index
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.
Semicolon or forward slash
Testing functions
14. Explain why constraints are used when building tables.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
15. 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
16. 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.
VALUES
SYSDATE
INTERSECT
When the table is small (unless your business rules require you too)
17. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
Recursive
GROUP BY
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
18. NUMBER functions can be...
All
VALUES clause of an INSERT statement
Nested
Month ddth - yyyy
19. The _______ function adds values together for a group of rows.
Three
Testing functions
SUM
4
20. You use the _________ keyword to add columns or constraints to a table.
Retrieve
Run scripts
ADD
Command returns the number of records returned by a query.
21. A calculation with a null always yields...
Another null
Retrieve
Business problems
Non-matching rows
22. Write a solution that adds 20 minutes to a given date.
Rounded edges
SYSDATE
SELECT SYSDATE+1/96 - FROM dual
Has not changed the name
23. What does SQL stand for?
DD-MON-YY
VALUES
Structured Query Language
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.
24. The purpose of the HAVING clause is to eliminate___________.
Asterisk
Groups
Time zone
DD-MON-YY
25. 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?
RENAME just_two_more_weeks TO finally_i
DICTIONARY
Null
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.
26. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Retrieve
@ or START
99.99
Optional
27. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Scale
+
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Default is 14; when you use the default - you repeat the heading every 14 rows.
28. List 4 aggregate functions
ADD_MONTHS function
ROLLBACK
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Optional
29. SQL*Plus is used more than SQL Developer when you need to...
ADD_MONTHS function
BETWEEN
STORAGE
Run scripts
30. The __________ operator is inclusive of the two values specified.
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
STORAGE
Location of the file
31. List the reasons that a subquery could not be unnested.
X
ANY
Time zone
VALUES clause of an INSERT statement
32. The _____________ clause determines how rows are grouped.
Any
GROUP BY
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
B-Tree Index
33. The ________ operator cannot compare against a list of values.
LIKE
Mathematical equations
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
UNION
34. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Rounded edges
IN ANY ALL SOME
Mathematical equations
DROP INDEX need_to_pass_i
35. You can use the ________________ to subtract months from a given date.
ADD_MONTHS function
RENAME just_two_more_weeks TO finally_i
DICT_COLUMNS
IN ANY ALL SOME
36. When column names on the tables are different - you use the ______ condition.
UTC
DECODE
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
ON
37. The focus of the logical data model is _____________
GROUP BY
Business problems
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.
Static or dynamic
38. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
ANSI
DD-MON-YY
Month ddth - yyyy
39. What is the main difference between the NOT EXISTS and the NOT IN operators?
DESC dict;
Retrieve
The way NULL values are treated
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
40. A transaction is a...
Precision
Three
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
Logical unit of work
41. Explain how the SPOOL command is used and what program it can be used in.
**** 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
+
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
Surrogate key
42. PAGESIZE
ANSI
Committed
Precision
Default is 14; when you use the default - you repeat the heading every 14 rows.
43. Subqueries can return...
COMMIT
Multiple rows
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.
UNION
44. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
When the table is small (unless your business rules require you too)
STORAGE
Crow's foot
MINUS
45. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
B-Tree Index
Any
DROP INDEX need_to_pass_i
X
46. _________ rows are not allowed in the relational model.
Equijoin and correlated subquery
Orphan
Parent table
@ or START
47. The time zone displacement value indicates the time difference from _______.
Another null
All caps
Extra spaces
UTC
48. The _______ operator determines common rows.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
UNION
INTERSECT
Columns
49. The ____________ command makes changes permanent.
RENAME just_two_more_weeks TO finally_i
COMMIT
GROUP BY
X
50. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
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.
+
SUM
Semicolon or forward slash