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. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
KEEP INDEX
Columns
X
2. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
SELECT SYSDATE+1/96 - FROM dual
@ or START
Nested
Leading-edge
3. To join four tables - you must have at least _____ join conditions.
Has not changed the name
V$
MINUS
Three
4. 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
Details
Surrogate key
DICT_COLUMNS
5. When you run a script in SQL*Plus you must give the...
ADD_MONTHS function
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.
Location of the file
Export Data
6. In a view you can give a column a different name than it has in the...
Rounded edges
Another null
Equijoin
Parent table
7. You use the __________ keyword to change characteristics of a column.
MODIFY
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
4000
Default is 14; when you use the default - you repeat the heading every 14 rows.
8. The ________ operator cannot compare against a list of values.
ANY
Retrieve
LIKE
MINUS
9. What is the keyboard shortcut for the ROLLBACK command?
BETWEEN
ALL_OBJECTS
DECODE
F12
10. ____________ are useful for analyzing and exploring the relationships within your data
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Self-joins
Default is 14; when you use the default - you repeat the heading every 14 rows.
99.99
11. How many characters can you have using the VARCHAR data type?
X
ROLLBACK
V$
4000
12. NUMBER functions can be...
TO_CHAR function
Nested
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
2000
13. What is the name of the key automatically generated from a sequence?
Orphan
Surrogate key
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
BETWEEN
14. The _______ operator determines common rows.
X
INTERSECT
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
All
15. The ROWID pseudocolumn is not an ________- but it acts like one.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Crow's foot
Command returns the number of records returned by a query.
Actual column
16. Explain the steps needed to run a script in SQL Developer
A correct 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.
Crow's foot
INNER JOIN
17. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Script
Month ddth - yyyy
X
Logical unit of work
18. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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
Details
Retrieve
Asterisk
19. The ______ operator compares a list of values for equivalency
ANY
CLOB
Time zone
Fractional seconds
20. Explain in detail the impact of INDEXES and how they are used by Oracle.
INTERSECT
DICT_COLUMNS
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
NATURAL JOIN
21. You can pass parameters from the operating system when ___________ in SQl*Plus
Twice
Running a script file
Location of the file
Non-matching rows
22. Checks whether any value in the list makes the condition true.
Any
FALSE
Time zone
Default is 14; when you use the default - you repeat the heading every 14 rows.
23. 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
24. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
FALSE
NATURAL JOIN
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
Columns
25. A join across three tables can be expressed with the ________ join syntax.
ALL_OBJECTS
Parent table
ANSI
Hide data
26. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Inconsistencies
99.99
Fractional seconds
Scalar
27. The purpose of the HAVING clause is to eliminate___________.
SET clause of an UPDATE 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
Location of the file
Groups
28. A calculation with a null always yields...
RENAME just_two_more_weeks TO finally_i
Another 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.
Static or dynamic
29. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Asterisk
ROLLBACK
30. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
A correct statement
B-Tree Index
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
Combine
31. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
RIGHT LEFT JOIN
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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Details
32. SQL*Plus is used more than SQL Developer when you need to...
SET clause of an UPDATE statement
Run scripts
Command returns the number of records returned by a query.
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
33. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
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.
Results
The indexed column is part of an expression. In this case - consider creating a function-based index instead
34. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Business problems
Script
Static or dynamic
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.
35. What is Oracle's most popular index storage structure?
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.
GROUP BY
The indexed column is part of an expression. In this case - consider creating a function-based index instead
B-Tree Index
36. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
A correct statement
Results
Any
37. It is considered good form to put all SQL commands in...
ANY
+
Scalar
All caps
38. The focus of the logical data model is _____________
Parent table
Twice
Business problems
Re-create
39. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Extra spaces
Implicit conversion
Rounded edges
DROP INDEX need_to_pass_i
40. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
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
Equijoin
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
41. A transaction is a...
Correlated
Logical unit of work
ANSI
Optional
42. FEEDBACK
Actual column
Command returns the number of records returned by a query.
ANSI
KEEP INDEX
43. To equijoin a table with another table involves matching the...
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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
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
Common column value
44. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
Any
Committed
Parent table
45. The ____________ command makes changes permanent.
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.
COMMIT
Asterisk
Surrogate key
46. Joins involving multiple columns must always follow the ____________ relationship path.
LIKE
Mathematical equations
Primary key/foreign key
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
47. When you have issued a DELETE command - you can still ________ those rows and restore the information.
ALL_OBJECTS
Retrieve
4
F12
48. What is the first column of a composite index called?
12:00:00 A.M
Correlated
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
Leading-edge
49. _________ rows are not allowed in the relational model.
Precision
Three
Orphan
X
50. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
USER_ - ALL_ - DBA_ - and V$
FALSE
Actual column
Command returns the number of records returned by a query.