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. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
The way NULL values are treated
Testing functions
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Results
2. The _____________ clause determines how rows are grouped.
Twice
Actual column
Optional
GROUP BY
3. Queries that are found in parentheses are done first - just as in the order of operations when doing...
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Mathematical equations
Script
When the table is small (unless your business rules require you too)
4. What is the name of the key automatically generated from a sequence?
ADD
Nested
V$
Surrogate key
5. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Same
A correct statement
Parent table
6. What is the first column of a composite index called?
Another null
ROLLBACK
ALL_OBJECTS
Leading-edge
7. LINESIZE
Fractional seconds
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Asterisk
ADD
8. What does the following function return? SELECT LENGTH(NULL) - FROM dual
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.
4
Null
9. List the different types of data dictionary views.
BETWEEN
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
Testing functions
USER_ - ALL_ - DBA_ - and V$
10. The same function can be used ______ in a SELECT statement.
SELECT SYSDATE+1/96 - FROM dual
Leading-edge
Logical unit of work
Twice
11. When you run a script in SQL*Plus you must give the...
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
2000
Location of the file
X
12. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Semicolon or forward slash
CLOB
Combine
999999.9999
13. Write the syntax to rename index just_two_more_weeks_i to finally_i
Nested
RENAME just_two_more_weeks TO finally_i
FALSE
Equijoin
14. The ALTER SESSION statement can change the session's...
COMMIT
VALUES
Time zone
99.99
15. UNION ALL does not sort - therefore it is less time consuming to use than the...
CLOB
All caps
Any
UNION operator
16. A calculation with a null always yields...
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
Another null
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Re-create
17. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Semicolon or forward slash
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
Three
Equijoin
18. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Implicit conversion
Recursive
Equijoin and identical column names
VALUES clause of an INSERT statement
19. You can pass parameters from the operating system when ___________ in SQl*Plus
999999.9999
USER_ - ALL_ - DBA_ - and V$
Running a script file
NATURAL JOIN
20. A _________ subquery returns a single column with a single row
Three
LENGTH
MODIFY
Scalar
21. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
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
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
22. A join across three tables can be expressed with the ________ join syntax.
ANSI
Asterisk
Non-matching rows
Month ddth - yyyy
23. SELECT * FROM instructor ORDER BY phone
Asterisk
Surrogate
A correct statement
@ or START
24. Oracle uses the outer join operator to indicate that nulls are shown for...
Testing functions
Month ddth - yyyy
Non-matching rows
Inconsistencies
25. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Recursive
Three
Static or dynamic
4
26. When is it not a good idea to use an index?
Scalar
Static or dynamic
When the table is small (unless your business rules require you too)
Inconsistencies
27. Explain the steps needed to run a script in SQL Developer
Equijoin
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.
RENAME just_two_more_weeks TO finally_i
Three
28. The TRUNC function on a date without a format model truncates the timestamp to...
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Asterisk
UNION
12:00:00 A.M
29. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Another null
Retrieve
X
All
30. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
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
BETWEEN
X
31. How many characters can be stored in the CHAR column/field?
Same
2000
UNION operator
User-defined reports
32. Write a statement for SQL*Plus that shows the dictionary.
+
DESC dict;
Columns
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
33. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Export Data
All caps
Inconsistencies
+
34. Match each of the SQL commands on the left with a verb from the list.
4
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Another null
F12
35. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
RENAME just_two_more_weeks TO finally_i
Parent table
DICT_COLUMNS
36. 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.
Running a script file
Orphan
FALSE
SELECT SYSDATE+1/96 - FROM dual
37. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Location of the file
Optional
SUM
Structured Query Language
38. 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
39. What is the keyboard shortcut for the ROLLBACK command?
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Non-matching rows
F12
Testing functions
40. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Actual column
Inconsistencies
Hide data
Scale
41. 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?
All
DICTIONARY
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.
SET clause of an UPDATE statement
42. __________________ inserts the current date and time.
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.
Location of the file
SYSDATE
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
43. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
VALUES clause of an INSERT statement
IN ANY ALL SOME
Surrogate
44. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
RUN SCRIPT
UTC
Multiple rows
Semicolon or forward slash
45. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
4000
FALSE
STORAGE
BETWEEN
46. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
Same
Combine
Both MIN and MAX
47. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
DICT_COLUMNS
SET clause of an UPDATE statement
SUM
48. Checks whether any value in the list makes the condition true.
Correlated
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
Any
SYSDATE
49. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
F12
SELECT DISTINCT menu FROM restaurant
INTERSECT
50. The purpose of the HAVING clause is to eliminate___________.
Rounded edges
Recursive
User-defined reports
Groups