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. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Mathematical equations
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
UTC
Nested
2. What is the tab in SQL Developer where data dictionary view information can be found?
4
ROLLBACK
BETWEEN
Details
3. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
UTC
V$
GROUP BY
4. The ROWID pseudocolumn is not an ________- but it acts like one.
LENGTH
Actual column
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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
5. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
Static or dynamic
Combine
SET clause of an UPDATE statement
6. You can pass parameters from the operating system when ___________ in SQl*Plus
VALUES
Running a script file
Primary key/foreign key
Surrogate
7. When you run a script in SQL*Plus you must give the...
TO_CHAR function
Location of the file
SELECT DISTINCT menu FROM restaurant
SYSDATE
8. 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
9. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
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
Both MIN and MAX
Groups
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
10. NUMBER functions can be...
Non-matching rows
Testing functions
Nested
ROLLBACK
11. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Crow's foot
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.
NATURAL JOIN
X
12. 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.
Actual column
Correlated
BETWEEN
VALUES
13. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
TO_CHAR function
ALL_OBJECTS
When the table is small (unless your business rules require you too)
ANSI
14. _________________ relationships are always optional relationships.
STORAGE
Recursive
Re-create
Crow's foot
15. Returns rows if the condition is true for all the values in the list
Default is 14; when you use the default - you repeat the heading every 14 rows.
Surrogate key
ROLLBACK
All
16. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
F12
NATURAL JOIN
+
17. The _______ operator determines common rows.
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
User-defined reports
INTERSECT
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
18. In a view you can give a column a different name than it has in the...
Static or dynamic
Month ddth - yyyy
Parent table
Primary key/foreign key
19. A join across three tables can be expressed with the ________ join syntax.
Business problems
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
ANSI
KEEP INDEX
20. 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
21. What is the data type you can use if you need an unlimited number of textual characters?
Re-create
CLOB
Multiple rows
Semicolon or forward slash
22. 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
23. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Export Data
Recursive
DICT_COLUMNS
Twice
24. List 6 Table-Related Menu Choices
Any
BETWEEN
SELECT DISTINCT menu FROM restaurant
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
25. FEEDBACK
STORAGE
ADD_MONTHS function
Command returns the number of records returned by a query.
X
26. Explain how Substitution Variables are used when writing scripts.
DICT_COLUMNS
Command returns the number of records returned by a query.
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.
DESC dict;
27. Write a solution that adds 20 minutes to a given date.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
X
SELECT SYSDATE+1/96 - FROM dual
COMMIT
28. List the reasons that a subquery could not be unnested.
Primary key/foreign key
Correlated
X
Twice
29. What is Oracle's most popular index storage structure?
DICT_COLUMNS
Run scripts
B-Tree Index
DD-MON-YY
30. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Correlated
Actual column
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Implicit conversion
31. What is the first column of a composite index called?
Has not changed the name
2000
Precision
Leading-edge
32. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Scalar
Null
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.
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
33. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Retrieve
Same
4000
34. You can use the ________________ to subtract months from a given date.
Scalar
Hide data
ALL_OBJECTS
ADD_MONTHS function
35. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
SET clause of an UPDATE statement
Equijoin and correlated subquery
IN ANY ALL SOME
Combine
36. The ________ operator cannot compare against a list of values.
LIKE
Scalar
FALSE
Month ddth - yyyy
37. What is the maximum value for a column defined as NUMBER(4 -2)?
Optional
99.99
TO_CHAR function
UNION
38. What does SQL stand for?
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
UNION operator
RIGHT LEFT JOIN
Structured Query Language
39. Explain the steps needed to run a script in SQL Developer
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
All
SET clause of an UPDATE statement
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.
40. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Primary key/foreign key
12:00:00 A.M
Non-matching rows
STORAGE
41. Another name for a data dictionary view is __________________ or _________________.
Static or dynamic
Script
4000
Business problems
42. Explain what a static data dictionary view is and how it is used
X
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.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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
43. What is the most common DATE format found in SQL?
MODIFY
DICTIONARY
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
DD-MON-YY
44. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Rounded edges
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
Actual column
Any
45. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
RENAME just_two_more_weeks TO finally_i
Committed
+
46. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
UNION
All caps
Default is 14; when you use the default - you repeat the heading every 14 rows.
47. List the different types of data dictionary views.
Hide data
USER_ - ALL_ - DBA_ - and V$
Three
INNER JOIN
48. The ALTER SESSION statement can change the session's...
DD-MON-YY
SYSDATE
Black
Time zone
49. SELECT * FROM instructor ORDER BY phone
SELECT SYSDATE+1/96 - FROM dual
Extra spaces
A correct statement
Any
50. How many characters can be stored in the CHAR column/field?
2000
Crow's foot
4
@ or START