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. Explain the steps needed to run a script in SQL Developer
Actual column
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.
IN ANY ALL SOME
Crow's foot
2. It is considered good form to put all SQL commands in...
All caps
Self-joins
Equijoin
Has not changed the name
3. A calculation with a null always yields...
Another null
ANSI
DD-MON-YY
SYSDATE
4. __________________ inserts the current date and time.
Equijoin
Non-matching rows
SYSDATE
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
5. What is the first column of a composite index called?
999999.9999
Leading-edge
ON
Month ddth - yyyy
6. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
DD-MON-YY
IN ANY ALL SOME
GROUP BY
RENAME just_two_more_weeks TO finally_i
7. Write a statement for SQL*Plus that shows the dictionary.
ROLLBACK
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.
DESC dict;
Running a script file
8. How many characters can be stored in the CHAR column/field?
Mathematical equations
4
RIGHT LEFT JOIN
2000
9. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
TO_CHAR function
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.
Command returns the number of records returned by a query.
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
10. You can pass parameters from the operating system when ___________ in SQl*Plus
DICT_COLUMNS
KEEP INDEX
999999.9999
Running a script file
11. In SQL Developer field names and table names are shown in the color _______.
Equijoin
Combine
Retrieve
Black
12. You use the _________ keyword to add columns or constraints to a table.
ADD
MINUS
RIGHT LEFT JOIN
Fractional seconds
13. Match each of the SQL commands on the left with a verb from the list.
Self-joins
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Optional
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
14. The _______ function adds values together for a group of rows.
Results
SUM
Three
LENGTH
15. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
Groups
Actual column
The indexed column is part of an expression. In this case - consider creating a function-based index instead
16. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Common column value
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.
Retrieve
Logical unit of work
17. What is the name of the key automatically generated from a sequence?
Month ddth - yyyy
Surrogate key
999999.9999
Scale
18. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
V$
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
All
19. What is the maximum value for a column defined as NUMBER(4 -2)?
Committed
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
ON
99.99
20. The query retrieves more than 5 to 15 percent of the rows
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.
Nested
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
The indexed column is part of an expression. In this case - consider creating a function-based index instead
21. Explain how the SPOOL command is used and what program it can be used in.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Hide data
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
BETWEEN
22. Returns rows if the condition is true for all the values in the list
CLOB
Business problems
All
MODIFY
23. The COUNT function is useful for determining whether a table has...
Data
Fractional seconds
V$
LIKE
24. The COUNT function uses the __________ wildcard.
Re-create
Asterisk
Correlated
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.
25. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
+
SELECT DISTINCT menu FROM restaurant
Optional
4
26. Write a statement that drops the index need_to_pass_i
LENGTH
DROP INDEX need_to_pass_i
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
Inconsistencies
27. FEEDBACK
Equijoin and correlated subquery
Month ddth - yyyy
Command returns the number of records returned by a query.
USER_ - ALL_ - DBA_ - and V$
28. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Null
Both MIN and MAX
Actual column
X
29. When is it not a good idea to use an index?
**** 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
When the table is small (unless your business rules require you too)
COMMIT
Implicit conversion
30. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
KEEP INDEX
X
V$
31. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
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.
ON
ADD
Script
32. You use the __________ keyword to change characteristics of a column.
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
SET clause of an UPDATE statement
MODIFY
33. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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.
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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
UTC
34. What is the tab in SQL Developer where data dictionary view information can be found?
ANSI
Scale
Details
KEEP INDEX
35. The _______ operator determines common rows.
Orphan
INTERSECT
ANY
@ or START
36. 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
37. Which format mask displays December 31st - 1999?
GROUP BY
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Month ddth - yyyy
FALSE
38. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
User-defined reports
X
Equijoin
KEEP INDEX
39. The purpose of the HAVING clause is to eliminate___________.
F12
Groups
12:00:00 A.M
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
40. Joins involving multiple columns must always follow the ____________ relationship path.
Has not changed the name
Precision
Primary key/foreign key
SET clause of an UPDATE statement
41. UNION ALL does not sort - therefore it is less time consuming to use than the...
User-defined reports
**** 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
UNION operator
Common column value
42. What is the most common DATE format found in SQL?
4
Crow's foot
DD-MON-YY
IN ANY ALL SOME
43. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Any
Fractional seconds
STORAGE
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
44. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Results
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
999999.9999
COMMIT
45. 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.
Testing functions
Asterisk
FALSE
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
46. List 4 aggregate functions
Logical unit of work
ROLLBACK
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
MINUS
47. How many characters can you have using the VARCHAR data type?
The way NULL values are treated
GROUP BY
4000
ALL_OBJECTS
48. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
STORAGE
Null
All caps
49. To equijoin a table with another table involves matching the...
SET clause of an UPDATE statement
UNION
Equijoin and identical column names
Common column value
50. The focus of the logical data model is _____________
Black
Business problems
@ or START
Structured Query Language