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. List the reasons that a subquery could not be unnested.
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
Implicit conversion
IN ANY ALL SOME
X
2. Write the syntax to rename index just_two_more_weeks_i to finally_i
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
RENAME just_two_more_weeks TO finally_i
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
SET clause of an UPDATE statement
3. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
X
Rounded edges
FALSE
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
4. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Groups
Leading-edge
Orphan
IN ANY ALL SOME
5. When column names on the tables are different - you use the ______ condition.
DD-MON-YY
ON
All caps
Mathematical equations
6. What is the maximum value for a column defined as NUMBER(4 -2)?
Results
Committed
ON
99.99
7. What is the main difference between the NOT EXISTS and the NOT IN operators?
**** 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
The way NULL values are treated
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
User-defined reports
8. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
UNION operator
BETWEEN
Results
12:00:00 A.M
9. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
COMMIT
Extra spaces
ALL_OBJECTS
Location of the file
10. You can use the ________________ to subtract months from a given date.
DROP INDEX need_to_pass_i
Optional
ADD_MONTHS function
Implicit conversion
11. Explain the steps needed to run a script in SQL Developer
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
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.
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.
NATURAL JOIN
12. The DUAL table can be used for...
Data
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.
Testing functions
Crow's foot
13. Explicit data type conversion is preferable to Oracle's...
Time zone
STORAGE
Implicit conversion
Crow's foot
14. What is the most common DATE format found in SQL?
Time zone
DD-MON-YY
Has not changed the name
Retrieve
15. What is the tab in SQL Developer where data dictionary view information can be found?
Primary key/foreign key
Export Data
Data
Details
16. Explain in detail the impact of INDEXES and how they are used by Oracle.
FALSE
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
Twice
Implicit conversion
17. A _________ subquery returns a single column with a single row
LIKE
MODIFY
Scalar
Fractional seconds
18. Subqueries can return...
A correct statement
Multiple rows
Surrogate key
Rounded edges
19. ____________ are useful for analyzing and exploring the relationships within your data
SYSDATE
FALSE
Committed
Self-joins
20. The RTRIM function is useful for eliminating ________ in a string.
LENGTH
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
Extra spaces
ADD
21. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
When the table is small (unless your business rules require you too)
Self-joins
User-defined reports
22. In SQL Developer field names and table names are shown in the color _______.
Black
MODIFY
Semicolon or forward slash
Implicit conversion
23. NUMBER functions can be...
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
DICT_COLUMNS
Nested
+
24. SELECT LIST of a subquery in an INSERT statement
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
DICTIONARY
STORAGE
25. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
KEEP INDEX
4000
Actual column
Semicolon or forward slash
26. 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
27. 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.
RUN SCRIPT
Columns
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
VALUES
28. Write a statement for SQL*Plus that shows the dictionary.
ALL_OBJECTS
DESC dict;
LIKE
Export Data
29. The term ____________ ___________ is used to express a join that satisfies the join condition.
Data
INNER JOIN
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Semicolon or forward slash
30. When you run a script in SQL*Plus you must give the...
Location of the file
B-Tree Index
Asterisk
When the table is small (unless your business rules require you too)
31. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
Recursive
User-defined reports
99.99
32. What are the main components of a ROWID?
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
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.
X
Script
33. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Details
Three
Leading-edge
ROLLBACK
34. What does SQL stand for?
Equijoin and identical column names
X
Structured Query Language
Scalar
35. SELECT * FROM instructor ORDER BY phone
A correct statement
COMMIT
INTERSECT
99.99
36. A calculation with a null always yields...
Another null
DROP INDEX need_to_pass_i
Time zone
999999.9999
37. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
X
99.99
BETWEEN
Precision
38. To equijoin a table with another table involves matching the...
MODIFY
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
Common column value
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
39. Which operator is most commonly used?
99.99
The way NULL values are treated
UNION
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.
40. What is the name of the key automatically generated from a sequence?
Surrogate key
BETWEEN
Data
4000
41. The ALTER SESSION statement can change the session's...
Time zone
MODIFY
Static or dynamic
Extra spaces
42. Explain how the SPOOL command is used and what program it can be used in.
Extra spaces
VALUES
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
RIGHT LEFT JOIN
43. The _____________ clause determines how rows are grouped.
Details
GROUP BY
Black
DESC dict;
44. Returns rows if the condition is true for all the values in the list
Logical unit of work
All
Same
DESC dict;
45. The time zone displacement value indicates the time difference from _______.
CLOB
UTC
ADD
Primary key/foreign key
46. It is considered good form to put all SQL commands in...
Non-matching rows
INNER JOIN
All caps
Retrieve
47. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
ANSI
Black
VALUES clause of an INSERT statement
A correct statement
48. A transaction is a...
X
When the table is small (unless your business rules require you too)
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
49. The ________ operator cannot compare against a list of values.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Nested
999999.9999
LIKE
50. __________________ inserts the current date and time.
Non-matching rows
BETWEEN
SYSDATE
Recursive