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. ____________ are useful for analyzing and exploring the relationships within your data
IN ANY ALL SOME
Nested
Self-joins
V$
2. The COUNT function uses the __________ wildcard.
Location of the file
Same
Equijoin and correlated subquery
Asterisk
3. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
STORAGE
COMMIT
4. Explain what is found in the All Objects report folder in SQL Developer
INTERSECT
Equijoin and identical column names
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
STORAGE
5. SELECT * FROM instructor ORDER BY phone
A correct statement
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
SELECT SYSDATE+1/96 - FROM dual
Static or dynamic
6. The TRUNC function on a date without a format model truncates the timestamp to...
Actual column
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.
12:00:00 A.M
UNION
7. The using clause of the ANSI join syntax always assumes an...
Equijoin and identical column names
Any
Recursive
VALUES clause of an INSERT statement
8. Write a solution that adds 20 minutes to a given date.
Combine
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
Structured Query Language
SELECT SYSDATE+1/96 - FROM dual
9. The purpose of the HAVING clause is to eliminate___________.
Groups
DROP INDEX need_to_pass_i
DICT_COLUMNS
Orphan
10. 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
@ or START
ANY
UTC
11. The same function can be used ______ in a SELECT statement.
Twice
Script
DICT_COLUMNS
B-Tree Index
12. List the reasons that a subquery could not be unnested.
ANY
VALUES clause of an INSERT statement
X
Business problems
13. How many characters can be stored in the CHAR column/field?
2000
Twice
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
SUM
14. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Scalar
GROUP BY
Testing functions
Mathematical equations
15. To equijoin a table with another table involves matching the...
Correlated
Primary key/foreign key
Precision
Common column value
16. Subqueries can return...
Multiple rows
Scalar
GROUP BY
Location of the file
17. In a view you can give a column a different name than it has in the...
Re-create
DESC dict;
Parent table
Business problems
18. _________________ relationships are always optional relationships.
Running a script file
Details
ALL_OBJECTS
Recursive
19. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Month ddth - yyyy
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
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
Surrogate
20. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Actual column
All
@ or START
Any
21. Which one of the following string functions tells you how many characters are in a string?
LENGTH
Same
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.
ADD_MONTHS function
22. A join across three tables can be expressed with the ________ join syntax.
ROLLBACK
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
Common column value
23. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
LENGTH
Combine
Both MIN and MAX
Equijoin and correlated subquery
24. The ________ operator cannot compare against a list of values.
LIKE
Extra spaces
BETWEEN
Script
25. What is the maximum value for a column defined as NUMBER(4 -2)?
99.99
VALUES
UNION
LENGTH
26. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
FALSE
User-defined reports
99.99
SELECT SYSDATE+1/96 - FROM dual
27. 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?
USER_ - ALL_ - DBA_ - and V$
MINUS
DICTIONARY
Results
28. SQL*Plus is used more than SQL Developer when you need to...
Both MIN and MAX
X
STORAGE
Run scripts
29. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
Retrieve
VALUES clause of an INSERT statement
999999.9999
30. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Same
RENAME just_two_more_weeks TO finally_i
Orphan
DICT_COLUMNS
31. The _______ function adds values together for a group of rows.
SUM
X
Both MIN and MAX
Orphan
32. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
+
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.
LIKE
Precision
33. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
VALUES
Optional
MINUS
FALSE
34. Explain how the SPOOL command is used and what program it can be used in.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Actual column
99.99
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
35. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
RUN SCRIPT
ANSI
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
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
36. Match each of the SQL commands on the left with a verb from the list.
Rounded edges
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Command returns the number of records returned by a query.
Data
37. How many characters can you have using the VARCHAR data type?
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.
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.
UNION
4000
38. Returns rows if the condition is true for all the values in the list
KEEP INDEX
+
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
All
39. When is it not a good idea to use an index?
GROUP BY
Self-joins
When the table is small (unless your business rules require you too)
4
40. 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
41. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Common column value
Script
Twice
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
42. The _____________ clause determines how rows are grouped.
Non-matching rows
INNER JOIN
GROUP BY
VALUES
43. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
X
SELECT DISTINCT menu FROM restaurant
Inconsistencies
KEEP INDEX
44. Joins involving multiple columns must always follow the ____________ relationship path.
LENGTH
Primary key/foreign key
Time zone
SELECT SYSDATE+1/96 - FROM dual
45. The ALTER SESSION statement can change the session's...
ON
Equijoin and identical column names
Time zone
Business problems
46. Comparison operators can compare multiple _________________.
Columns
ALL_OBJECTS
Hide data
Any
47. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Any
SYSDATE
Retrieve
UNION operator
48. 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.
Scale
DESC dict;
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
RIGHT LEFT JOIN
49. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
DICT_COLUMNS
X
FALSE
Business problems
50. Which format mask displays December 31st - 1999?
ON
Month ddth - yyyy
@ or START
Equijoin