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. The ___________ operator tests whether a matching row cannot be found.
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.
Black
X
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
2. Explicit data type conversion is preferable to Oracle's...
4
Implicit conversion
X
Committed
3. List 6 Table-Related Menu Choices
MODIFY
Actual column
SELECT DISTINCT menu FROM restaurant
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
4. Converting a text literal to DATE format requires the use of the...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Scale
TO_CHAR function
LIKE
5. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
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
F12
RENAME just_two_more_weeks TO finally_i
6. When you have issued a DELETE command - you can still ________ those rows and restore the information.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Retrieve
Null
Data
7. A _________ subquery returns a single column with a single row
Null
VALUES clause of an INSERT statement
B-Tree Index
Scalar
8. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
Asterisk
4
Precision
9. Match each of the SQL commands on the left with a verb from the list.
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
Correlated
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Scale
10. Explain the steps needed to run a script in SQL Developer
**** 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
STORAGE
INNER JOIN
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.
11. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
CLOB
Run scripts
TO_CHAR function
Combine
12. You can use the ________________ to subtract months from a given date.
SYSDATE
Leading-edge
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.
ADD_MONTHS function
13. 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?
DICTIONARY
All
Inconsistencies
SET clause of an UPDATE statement
14. When column names on the tables are different - you use the ______ condition.
ANY
SET clause of an UPDATE statement
DECODE
ON
15. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
SET clause of an UPDATE statement
Fractional seconds
DICTIONARY
16. The key that most database designers prefer and is chosen by the system is the _____________ key.
DROP INDEX need_to_pass_i
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.
Surrogate
STORAGE
17. Explain what is found in the All Objects report folder in SQL Developer
Script
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
RUN SCRIPT
UNION operator
18. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
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.
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
DECODE
19. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
**** 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
User-defined reports
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.
20. What is the tab in SQL Developer where data dictionary view information can be found?
999999.9999
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.
Details
Fractional seconds
21. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
X
RIGHT LEFT JOIN
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
22. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
BETWEEN
Committed
KEEP INDEX
DICT_COLUMNS
23. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
ALL_OBJECTS
FALSE
Correlated
24. 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
25. SELECT * FROM instructor ORDER BY phone
Asterisk
A correct statement
Primary key/foreign key
Results
26. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
UNION operator
IN ANY ALL SOME
Nested
Semicolon or forward slash
27. The RTRIM function is useful for eliminating ________ in a string.
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.
Has not changed the name
Extra spaces
RENAME just_two_more_weeks TO finally_i
28. Which operator is most commonly used?
UNION
Self-joins
12:00:00 A.M
Default is 14; when you use the default - you repeat the heading every 14 rows.
29. SQL*Plus is used more than SQL Developer when you need to...
Asterisk
Location of the file
Run scripts
User-defined reports
30. FEEDBACK
Twice
Command returns the number of records returned by a query.
Actual column
DD-MON-YY
31. The COUNT function uses the __________ wildcard.
Scalar
Asterisk
COMMIT
Re-create
32. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
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
User-defined reports
Committed
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.
33. Explain what a static data dictionary view is and how it is used
F12
Results
+
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.
34. What is Oracle's most popular index storage structure?
B-Tree Index
Script
All
Default is 14; when you use the default - you repeat the heading every 14 rows.
35. __________________ inserts the current date and time.
RIGHT LEFT JOIN
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.
ROLLBACK
SYSDATE
36. The focus of the logical data model is _____________
BETWEEN
Business problems
4
USER_ - ALL_ - DBA_ - and V$
37. To join four tables - you must have at least _____ join conditions.
Three
BETWEEN
IN ANY ALL SOME
Scale
38. What do views do that makes them so useful for security?
Surrogate key
Extra spaces
Hide data
Scale
39. What are the main components of a ROWID?
SELECT DISTINCT menu FROM restaurant
When the table is small (unless your business rules require you too)
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.
KEEP INDEX
40. Write a statement for SQL*Plus that shows the dictionary.
Crow's foot
DESC dict;
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Recursive
41. _________ rows are not allowed in the relational model.
The way NULL values are treated
Orphan
LENGTH
Multiple rows
42. What is the name of the key automatically generated from a sequence?
Equijoin
Surrogate key
STORAGE
Both MIN and MAX
43. What is the keyboard shortcut for the ROLLBACK command?
F12
B-Tree Index
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Any
44. Write a statement that drops the index need_to_pass_i
Scale
MINUS
DROP INDEX need_to_pass_i
Scalar
45. The ____________ command makes changes permanent.
DICT_COLUMNS
COMMIT
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
SELECT SYSDATE+1/96 - FROM dual
46. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
All caps
LENGTH
Non-matching rows
Script
47. The using clause of the ANSI join syntax always assumes an...
99.99
Any
Equijoin and identical column names
Results
48. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Null
LENGTH
99.99
Equijoin and correlated subquery
49. 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.
DD-MON-YY
Orphan
VALUES
Equijoin and correlated subquery
50. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Any
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
Primary key/foreign key
Default is 14; when you use the default - you repeat the heading every 14 rows.