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. Checks whether any value in the list makes the condition true.
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
Self-joins
Re-create
Any
2. Explain the steps needed to run a script in SQL Developer
Mathematical equations
Rounded edges
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.
INTERSECT
3. Explain what a static data dictionary view is and how it is used
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
Details
GROUP BY
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.
4. The _______ function adds values together for a group of rows.
BETWEEN
SUM
Committed
999999.9999
5. The key that most database designers prefer and is chosen by the system is the _____________ key.
X
Surrogate
4000
Static or dynamic
6. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
A correct statement
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
COMMIT
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
7. NUMBER functions can be...
FALSE
Nested
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
INTERSECT
8. Write a statement for SQL*Plus that shows the dictionary.
Has not changed the name
IN ANY ALL SOME
DESC dict;
KEEP INDEX
9. The focus of the logical data model is _____________
99.99
All
Both MIN and MAX
Business problems
10. Explain what is found in the All Objects report folder in SQL Developer
RUN SCRIPT
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Inconsistencies
Equijoin
11. The DUAL table can be used for...
Testing functions
ALL_OBJECTS
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
Logical unit of work
12. You use the __________ keyword to change characteristics of a column.
MODIFY
DECODE
DICTIONARY
Correlated
13. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
All caps
Scale
Another null
DESC dict;
14. The COUNT function uses the __________ wildcard.
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.
Asterisk
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Crow's foot
15. Dynamic views begin with a ___________.
V$
Time zone
Leading-edge
Equijoin and correlated subquery
16. PAGESIZE
UTC
RENAME just_two_more_weeks TO finally_i
VALUES clause of an INSERT statement
Default is 14; when you use the default - you repeat the heading every 14 rows.
17. The _____________ clause determines how rows are grouped.
GROUP BY
DECODE
ON
COMMIT
18. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
ANY
FALSE
GROUP BY
Scalar
19. The using clause of the ANSI join syntax always assumes an...
ANY
ADD
Equijoin and identical column names
SELECT SYSDATE+1/96 - FROM dual
20. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Surrogate
SET clause of an UPDATE statement
Surrogate key
Rounded edges
21. Which format mask displays December 31st - 1999?
Script
@ or START
Month ddth - yyyy
DD-MON-YY
22. Users can only see changes made to a database once they have been...
Fractional seconds
Self-joins
Committed
Black
23. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Columns
B-Tree Index
Null
Mathematical equations
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?
Actual column
DICTIONARY
**** 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
25. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
Another null
ROLLBACK
DD-MON-YY
26. FEEDBACK
Command returns the number of records returned by a query.
TO_CHAR function
SUM
STORAGE
27. ____________ are useful for analyzing and exploring the relationships within your data
Data
VALUES
Self-joins
Mathematical equations
28. It is considered good form to put all SQL commands in...
User-defined reports
ADD_MONTHS function
INTERSECT
All caps
29. The purpose of the HAVING clause is to eliminate___________.
Groups
Export Data
Equijoin and identical column names
Default is 14; when you use the default - you repeat the heading every 14 rows.
30. Which one of the following string functions tells you how many characters are in a string?
LENGTH
Equijoin and correlated subquery
X
ANY
31. Joins involving multiple columns must always follow the ____________ relationship path.
Business problems
Inconsistencies
Any
Primary key/foreign key
32. What are the main components of a ROWID?
ADD_MONTHS function
4000
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.
DICTIONARY
33. SELECT * FROM instructor ORDER BY phone
Common column value
Time zone
GROUP BY
A correct statement
34. 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
35. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Hide data
VALUES
NATURAL JOIN
COMMIT
36. What is the data type you can use if you need an unlimited number of textual characters?
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
CLOB
DECODE
Both MIN and MAX
37. 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.
UNION
Has not changed the name
**** 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
Mathematical equations
38. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
VALUES
Surrogate key
GROUP BY
DICT_COLUMNS
39. When column names on the tables are different - you use the ______ condition.
Mathematical equations
ON
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
+
40. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Semicolon or forward slash
INTERSECT
VALUES clause of an INSERT statement
41. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
Surrogate key
Time zone
KEEP INDEX
42. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Has not changed the name
MINUS
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Same
43. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
USER_ - ALL_ - DBA_ - and V$
Surrogate
User-defined reports
All
44. A calculation with a null always yields...
Re-create
Another null
ANSI
MODIFY
45. To join four tables - you must have at least _____ join conditions.
Parent table
Three
4000
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.
46. _________ rows are not allowed in the relational model.
Orphan
Groups
Mathematical equations
Scalar
47. You use the _________ keyword to add columns or constraints to a table.
X
Equijoin and identical column names
ADD
SELECT DISTINCT menu FROM restaurant
48. What is the name of the key automatically generated from a sequence?
Any
Surrogate key
Orphan
LIKE
49. A _________ subquery returns a single column with a single row
SET clause of an UPDATE statement
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Semicolon or forward slash
Scalar
50. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Export Data
MINUS
Script
Combine