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. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
LIKE
Semicolon or forward slash
COMMIT
2. The key that most database designers prefer and is chosen by the system is the _____________ key.
V$
Surrogate
GROUP BY
**** 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
3. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Equijoin and correlated subquery
SET clause of an UPDATE statement
Logical unit of work
BETWEEN
4. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
X
Three
99.99
NATURAL JOIN
5. Explicit data type conversion is preferable to Oracle's...
When the table is small (unless your business rules require you too)
2000
LIKE
Implicit conversion
6. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ON
ALL_OBJECTS
Command returns the number of records returned by a query.
DD-MON-YY
7. A calculation with a null always yields...
Implicit conversion
Has not changed the name
DD-MON-YY
Another null
8. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
UNION
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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
ANY
9. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
IN ANY ALL SOME
Structured Query Language
Details
10. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
Optional
FALSE
Script
11. 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
12. Write a solution that adds 20 minutes to a given date.
VALUES clause of an INSERT statement
Run scripts
SELECT SYSDATE+1/96 - FROM dual
12:00:00 A.M
13. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Structured Query Language
Rounded edges
UNION
14. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
Hide data
Details
Another null
15. When column names on the tables are different - you use the ______ condition.
ON
Month ddth - yyyy
UNION operator
Export Data
16. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Retrieve
Surrogate
Mathematical equations
Any
17. Another name for a data dictionary view is __________________ or _________________.
ALL_OBJECTS
B-Tree Index
Black
Static or dynamic
18. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
ADD
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
TO_CHAR function
Optional
19. The _______ operator determines common rows.
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
INTERSECT
UNION
Has not changed the name
20. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
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.
Static or dynamic
SELECT SYSDATE+1/96 - FROM dual
21. List the steps performed by a correlated subquery.
DECODE
**** 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
Three
X
22. You use the __________ keyword to change characteristics of a column.
MODIFY
Same
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
23. The query retrieves more than 5 to 15 percent of the rows
Groups
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
ALL_OBJECTS
24. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Scalar
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.
Both MIN and MAX
Run scripts
25. 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?
Leading-edge
SELECT SYSDATE+1/96 - FROM dual
DICTIONARY
Nested
26. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
MODIFY
All caps
Scale
Inconsistencies
27. How many characters can you have using the VARCHAR data type?
TO_CHAR function
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
Asterisk
4000
28. Explain in detail the impact of INDEXES and how they are used by Oracle.
Fractional seconds
Any
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
Logical unit of work
29. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
F12
Same
B-Tree Index
X
30. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Implicit conversion
Precision
31. NUMBER functions can be...
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
SELECT SYSDATE+1/96 - FROM dual
Nested
VALUES
32. 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.
Parent table
The way NULL values are treated
ALL_OBJECTS
33. The ROWID pseudocolumn is not an ________- but it acts like one.
Orphan
Actual column
ROLLBACK
**** 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
34. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
LIKE
Semicolon or forward slash
Testing functions
Equijoin and correlated subquery
35. When is it not a good idea to use an index?
Equijoin and identical column names
UTC
When the table is small (unless your business rules require you too)
Data
36. SELECT * FROM instructor ORDER BY phone
A correct statement
Run scripts
LENGTH
Surrogate key
37. List 6 Table-Related Menu Choices
ADD
RENAME just_two_more_weeks TO finally_i
Testing functions
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
38. What is the maximum value for a column defined as NUMBER(4 -2)?
Correlated
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.
ROLLBACK
99.99
39. What is the most common DATE format found in SQL?
2000
DD-MON-YY
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
NATURAL JOIN
40. Write the syntax to rename index just_two_more_weeks_i to finally_i
Multiple rows
DROP INDEX need_to_pass_i
ADD
RENAME just_two_more_weeks TO finally_i
41. The TRUNC function on a date without a format model truncates the timestamp to...
Location of the file
Combine
12:00:00 A.M
ANY
42. A join across three tables can be expressed with the ________ join syntax.
Rounded edges
ANSI
STORAGE
4
43. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Parent table
COMMIT
User-defined reports
Groups
44. Dynamic views begin with a ___________.
ROLLBACK
Time zone
V$
DD-MON-YY
45. You can pass parameters from the operating system when ___________ in SQl*Plus
ANSI
VALUES
Running a script file
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
46. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
VALUES clause of an INSERT statement
ADD
Committed
47. What is the keyboard shortcut for the ROLLBACK command?
User-defined reports
DD-MON-YY
ADD_MONTHS function
F12
48. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Columns
Re-create
MINUS
STORAGE
49. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
4000
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
SELECT DISTINCT menu FROM restaurant
FALSE
50. Comparison operators can compare multiple _________________.
COMMIT
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
Details