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. Another name for a data dictionary view is __________________ or _________________.
DICT_COLUMNS
+
Static or dynamic
SELECT DISTINCT menu FROM restaurant
2. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
B-Tree Index
Crow's foot
FALSE
Export Data
3. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Asterisk
@ or START
Retrieve
Data
4. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
MODIFY
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Asterisk
5. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
DROP INDEX need_to_pass_i
Correlated
Black
Equijoin
6. 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
FALSE
SELECT DISTINCT menu FROM restaurant
LENGTH
7. 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.
ANY
Logical unit of work
FALSE
VALUES
8. What is Oracle's most popular index storage structure?
NATURAL JOIN
SET clause of an UPDATE statement
B-Tree Index
USER_ - ALL_ - DBA_ - and V$
9. The ____________ command makes changes permanent.
Nested
Has not changed the name
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
COMMIT
10. Converting a text literal to DATE format requires the use of the...
Testing functions
TO_CHAR function
Optional
Command returns the number of records returned by a query.
11. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Scale
Both MIN and MAX
+
TO_CHAR function
12. What is the keyboard shortcut for the ROLLBACK command?
F12
ON
Re-create
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.
13. What is the first column of a composite index called?
Leading-edge
X
Static or dynamic
Run scripts
14. Explain the steps needed to run a script in SQL Developer
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.
RIGHT LEFT 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
Nested
15. What is the data type you can use if you need an unlimited number of textual characters?
VALUES clause of an INSERT statement
Any
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
CLOB
16. The purpose of the HAVING clause is to eliminate___________.
Groups
Structured Query Language
FALSE
VALUES
17. What do views do that makes them so useful for security?
Recursive
STORAGE
Hide data
All
18. ____________ are useful for analyzing and exploring the relationships within your data
DECODE
Surrogate
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Self-joins
19. In SQL Developer field names and table names are shown in the color _______.
VALUES
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.
Black
20. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
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.
MODIFY
MINUS
RUN SCRIPT
21. The TRUNC function on a date without a format model truncates the timestamp to...
USER_ - ALL_ - DBA_ - and V$
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
INNER JOIN
12:00:00 A.M
22. You use the _________ keyword to add columns or constraints to a table.
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.
Another null
ADD
23. The _______ function adds values together for a group of rows.
SUM
KEEP INDEX
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Any
24. You can pass parameters from the operating system when ___________ in SQl*Plus
INNER JOIN
STORAGE
Location of the file
Running a script file
25. What is the main difference between the NOT EXISTS and the NOT IN operators?
Scalar
Month ddth - yyyy
The way NULL values are treated
Another null
26. Explain what is found in the All Objects report folder in SQL Developer
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
VALUES clause of an INSERT statement
SELECT SYSDATE+1/96 - FROM dual
+
27. Explain in detail the impact of INDEXES and how they are used by Oracle.
Scale
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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
SUM
28. Write a statement that drops the index need_to_pass_i
All caps
SET clause of an UPDATE statement
DROP INDEX need_to_pass_i
Groups
29. Which one of the following string functions tells you how many characters are in a string?
TO_CHAR function
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Equijoin and identical column names
LENGTH
30. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
DICTIONARY
Scale
All
SELECT DISTINCT menu FROM restaurant
31. Returns rows if the condition is true for all the values in the list
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.
ANSI
All
Run scripts
32. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Groups
Leading-edge
IN ANY ALL SOME
UNION
33. To equijoin a table with another table involves matching the...
TO_CHAR function
Common column value
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.
B-Tree Index
34. How many characters can be stored in the CHAR column/field?
FALSE
Implicit conversion
Actual column
2000
35. A transaction is a...
ON
Logical unit of work
X
Nested
36. 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
37. List the steps performed by a correlated subquery.
12:00:00 A.M
**** 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
Data
IN ANY ALL SOME
38. When you run a script in SQL*Plus you must give the...
Location of the file
IN ANY ALL SOME
Null
LIKE
39. A calculation with a null always yields...
ALL_OBJECTS
Another null
DICTIONARY
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. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Three
Month ddth - yyyy
VALUES clause of an INSERT statement
DD-MON-YY
41. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Optional
User-defined reports
Scalar
42. _________ rows are not allowed in the relational model.
Orphan
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.
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.
BETWEEN
43. SELECT LIST of a subquery in an INSERT statement
SYSDATE
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
SET clause of an UPDATE statement
LIKE
44. A _________ subquery returns a single column with a single row
MINUS
Black
Scalar
The indexed column is part of an expression. In this case - consider creating a function-based index instead
45. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
ROLLBACK
Multiple rows
RUN SCRIPT
Equijoin and correlated subquery
46. The same function can be used ______ in a SELECT statement.
Twice
Common column value
ADD_MONTHS function
SELECT SYSDATE+1/96 - FROM dual
47. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
RUN SCRIPT
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.
48. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
STORAGE
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Common column value
49. What does SQL stand for?
Structured Query Language
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
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
MINUS
50. Write the syntax to rename index just_two_more_weeks_i to finally_i
A correct statement
UTC
Three
RENAME just_two_more_weeks TO finally_i