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. Users can only see changes made to a database once they have been...
Crow's foot
Committed
F12
The way NULL values are treated
2. You can pass parameters from the operating system when ___________ in SQl*Plus
ALL_OBJECTS
Running a script file
Default is 14; when you use the default - you repeat the heading every 14 rows.
ON
3. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
CLOB
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
FALSE
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
4. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
TO_CHAR function
Static or dynamic
Combine
5. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
ROLLBACK
RIGHT LEFT 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.
Implicit conversion
6. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Nested
SELECT SYSDATE+1/96 - FROM dual
CLOB
X
7. The RTRIM function is useful for eliminating ________ in a string.
Structured Query Language
SUM
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Extra spaces
8. Subqueries can return...
+
999999.9999
Multiple rows
BETWEEN
9. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
ANY
Script
BETWEEN
Default is 14; when you use the default - you repeat the heading every 14 rows.
10. Which one of the following string functions tells you how many characters are in a string?
IN ANY ALL SOME
LENGTH
USER_ - ALL_ - DBA_ - and V$
Month ddth - yyyy
11. Which format mask displays December 31st - 1999?
Any
Month ddth - yyyy
RIGHT LEFT JOIN
Location of the file
12. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Primary key/foreign key
STORAGE
Equijoin and correlated subquery
RIGHT LEFT JOIN
13. The term ____________ ___________ is used to express a join that satisfies the join condition.
Same
INNER JOIN
Fractional seconds
Common column value
14. Oracle uses the outer join operator to indicate that nulls are shown for...
Export Data
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
Non-matching rows
15. What is the main difference between the NOT EXISTS and the NOT IN operators?
Recursive
DD-MON-YY
The way NULL values are treated
Multiple rows
16. It is considered good form to put all SQL commands in...
All caps
Mathematical equations
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
A correct statement
17. NUMBER functions can be...
UNION operator
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
Retrieve
Nested
18. The ROWID pseudocolumn is not an ________- but it acts like one.
Month ddth - yyyy
Actual column
SUM
Non-matching rows
19. List the steps performed by a correlated subquery.
**** 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
Month ddth - yyyy
Data
User-defined reports
20. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Business problems
SELECT DISTINCT menu FROM restaurant
Mathematical equations
Implicit conversion
21. Which operator is most commonly used?
RIGHT LEFT JOIN
SELECT SYSDATE+1/96 - FROM dual
UNION
ADD
22. What does SQL stand for?
@ or START
Structured Query Language
STORAGE
MODIFY
23. When you create a report in SQL Developer all the column names must match identically the names of the columns found in the tables you are referencing.
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
Multiple rows
FALSE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
24. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
User-defined reports
ADD_MONTHS function
DICT_COLUMNS
X
25. SQL*Plus is used more than SQL Developer when you need to...
Equijoin and correlated subquery
Run scripts
B-Tree Index
Any
26. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
Common column value
NATURAL JOIN
DECODE
27. A calculation with a null always yields...
Fractional seconds
Export Data
Another null
USER_ - ALL_ - DBA_ - and V$
28. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
X
STORAGE
DD-MON-YY
29. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
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
Script
30. A join across three tables can be expressed with the ________ join syntax.
2000
4000
ANSI
Implicit conversion
31. Write a statement that drops the index need_to_pass_i
Precision
RUN SCRIPT
DROP INDEX need_to_pass_i
X
32. The key that most database designers prefer and is chosen by the system is the _____________ key.
Parent table
Surrogate
Scalar
ADD
33. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Export Data
Committed
ALL_OBJECTS
Static or dynamic
34. 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
35. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
ON
Export Data
Leading-edge
36. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
UNION
Fractional seconds
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.
V$
37. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
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.
DICTIONARY
DESC dict;
NATURAL JOIN
38. The COUNT function uses the __________ wildcard.
Equijoin and correlated subquery
Asterisk
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.
SELECT DISTINCT menu FROM restaurant
39. Explain what is found in the All Objects report folder in SQL Developer
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Time zone
Results
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
40. When you have issued a DELETE command - you can still ________ those rows and restore the information.
VALUES
Retrieve
DD-MON-YY
Actual column
41. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Correlated
Another null
4
Location of the file
42. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
VALUES clause of an INSERT statement
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
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.
43. List the different types of data dictionary views.
Any
LIKE
USER_ - ALL_ - DBA_ - and V$
Committed
44. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Both MIN and MAX
SYSDATE
Another null
45. SELECT * FROM instructor ORDER BY phone
Business problems
A correct statement
STORAGE
UTC
46. How many characters can you have using the VARCHAR data type?
DD-MON-YY
4000
X
Hide data
47. What do views do that makes them so useful for security?
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
ON
Hide data
Inconsistencies
48. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
BETWEEN
+
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
49. You use the __________ keyword to change characteristics of a column.
Script
MODIFY
Equijoin and correlated subquery
Recursive
50. The using clause of the ANSI join syntax always assumes an...
Hide data
Equijoin and identical column names
Equijoin and correlated subquery
A correct statement