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. The ALTER SESSION statement can change the session's...
Leading-edge
SYSDATE
Rounded edges
Time zone
2. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Parent table
Null
Another null
RUN SCRIPT
3. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
Fractional seconds
Asterisk
Precision
4. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
INNER JOIN
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.
Semicolon or forward slash
5. What is the tab in SQL Developer where data dictionary view information can be found?
RENAME just_two_more_weeks TO finally_i
RIGHT LEFT JOIN
Details
STORAGE
6. A transaction is a...
Inconsistencies
Logical unit of work
2000
V$
7. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Hide data
X
8. To restart a sequence at a lower number - you can drop and ________ the sequence.
MINUS
Re-create
F12
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.
9. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
Recursive
COMMIT
Twice
10. The ____________ command makes changes permanent.
All caps
Running a script file
Results
COMMIT
11. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
Recursive
Multiple rows
Script
12. The same function can be used ______ in a SELECT statement.
Any
4000
Twice
Self-joins
13. What does SQL stand for?
Leading-edge
Retrieve
Structured Query Language
Semicolon or forward slash
14. UNION ALL does not sort - therefore it is less time consuming to use than the...
SUM
UNION operator
SYSDATE
Self-joins
15. NUMBER functions can be...
BETWEEN
Nested
Equijoin and identical column names
B-Tree Index
16. Which format mask displays December 31st - 1999?
Month ddth - yyyy
RENAME just_two_more_weeks TO finally_i
ALL_OBJECTS
Testing functions
17. What is the most common DATE format found in SQL?
DD-MON-YY
SELECT DISTINCT menu FROM restaurant
Another null
X
18. The purpose of the HAVING clause is to eliminate___________.
Time zone
The way NULL values are treated
MINUS
Groups
19. Explain the steps needed to run a script in SQL Developer
999999.9999
Testing functions
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.
F12
20. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Time zone
Results
Default is 14; when you use the default - you repeat the heading every 14 rows.
MINUS
21. SELECT * FROM instructor ORDER BY phone
All
BETWEEN
RENAME just_two_more_weeks TO finally_i
A correct statement
22. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.
Has not changed the name
DECODE
Three
Hide data
23. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
IN ANY ALL SOME
DECODE
Precision
Combine
24. It is considered good form to put all SQL commands in...
All caps
TO_CHAR function
FALSE
MODIFY
25. Explain what is found in the All Objects report folder in SQL Developer
SUM
Semicolon or forward slash
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Null
26. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
LENGTH
Leading-edge
Script
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.
27. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
4
ALL_OBJECTS
ON
UNION
28. 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
29. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
Precision
LENGTH
Three
30. A join across three tables can be expressed with the ________ join syntax.
Actual column
Another null
ANSI
Same
31. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
TO_CHAR function
Scale
LIKE
32. What do views do that makes them so useful for security?
Command returns the number of records returned by a query.
Hide data
Self-joins
Extra spaces
33. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Same
BETWEEN
Export Data
Scale
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. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Default is 14; when you use the default - you repeat the heading every 14 rows.
Recursive
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
36. Checks whether any value in the list makes the condition true.
Default is 14; when you use the default - you repeat the heading every 14 rows.
GROUP BY
4000
Any
37. Explain how Dynamic SQL is used and give an example of a Dynamic SQL 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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Running a script file
38. The ________ operator cannot compare against a list of values.
STORAGE
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
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
LIKE
39. The __________ operator is inclusive of the two values specified.
Implicit conversion
BETWEEN
LIKE
Crow's foot
40. 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
Scalar
Correlated
ANY
41. You use the __________ keyword to change characteristics of a column.
MODIFY
DICT_COLUMNS
All caps
ADD_MONTHS function
42. List the reasons that a subquery could not be unnested.
X
Structured Query Language
ANSI
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.
43. The RTRIM function is useful for eliminating ________ in a string.
Scalar
Extra spaces
Columns
F12
44. 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.
LENGTH
ALL_OBJECTS
VALUES
BETWEEN
45. Explicit data type conversion is preferable to Oracle's...
Columns
Equijoin and correlated subquery
BETWEEN
Implicit conversion
46. What are the main components of a ROWID?
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.
USER_ - ALL_ - DBA_ - and V$
SYSDATE
Business problems
47. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
MODIFY
Surrogate
ROLLBACK
The way NULL values are treated
48. Returns rows if the condition is true for all the values in the list
All
X
DECODE
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
49. SQL*Plus is used more than SQL Developer when you need to...
INTERSECT
Run scripts
ANSI
V$
50. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Command returns the number of records returned by a query.
DESC dict;
Equijoin
Three