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. What is the most common DATE format found in SQL?
ROLLBACK
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
DD-MON-YY
Optional
2. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Static or dynamic
Default is 14; when you use the default - you repeat the heading every 14 rows.
@ or START
Run scripts
3. When is it not a good idea to use an index?
UTC
Combine
When the table is small (unless your business rules require you too)
2000
4. The ROWID pseudocolumn is not an ________- but it acts like one.
LIKE
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.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Actual column
5. A calculation with a null always yields...
SYSDATE
Columns
Another 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.
6. ____________ are useful for analyzing and exploring the relationships within your data
Common column value
2000
Self-joins
ADD
7. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
The way NULL values are treated
X
Precision
X
8. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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
Mathematical equations
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
9. Comparison operators can compare multiple _________________.
Same
Testing functions
Columns
Self-joins
10. The ________ operator cannot compare against a list of values.
Asterisk
LIKE
Equijoin and identical column names
Leading-edge
11. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Mathematical equations
Equijoin and correlated subquery
ADD_MONTHS function
KEEP INDEX
12. SQL*Plus is used more than SQL Developer when you need to...
DROP INDEX need_to_pass_i
SELECT DISTINCT menu FROM restaurant
Run scripts
STORAGE
13. You use the __________ keyword to change characteristics of a column.
MODIFY
Surrogate
Details
Scalar
14. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
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
LENGTH
The way NULL values are treated
FALSE
15. The RTRIM function is useful for eliminating ________ in a string.
Extra spaces
Month ddth - yyyy
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.
All
16. What is the keyboard shortcut for the ROLLBACK command?
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
DICT_COLUMNS
F12
Surrogate
17. Explain the steps needed to run a script in SQL Developer
Surrogate
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.
Default is 14; when you use the default - you repeat the heading every 14 rows.
X
18. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
Inconsistencies
DICTIONARY
Any
19. SELECT LIST of a subquery in an INSERT statement
12:00:00 A.M
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
SET clause of an UPDATE statement
Committed
20. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
21. Explain how Substitution Variables are used when writing scripts.
Same
IN ANY ALL SOME
Time zone
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.
22. FEEDBACK
Three
Static or dynamic
Command returns the number of records returned by a query.
Any
23. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
LENGTH
Equijoin and correlated subquery
IN ANY ALL SOME
Details
24. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Run scripts
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
ALL_OBJECTS
Rounded edges
25. 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.
Data
Crow's foot
X
Has not changed the name
26. The COUNT function uses the __________ wildcard.
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
Asterisk
Run scripts
VALUES
27. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Month ddth - yyyy
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Equijoin
ALL_OBJECTS
28. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
KEEP INDEX
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Orphan
29. 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
4
The way NULL values are treated
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.
30. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
V$
SELECT DISTINCT menu FROM restaurant
Data
ANY
31. Which one of the following string functions tells you how many characters are in a string?
Equijoin and identical column names
ADD_MONTHS function
Semicolon or forward slash
LENGTH
32. Which operator is most commonly used?
Testing functions
UNION
Retrieve
RIGHT LEFT JOIN
33. The DUAL table can be used for...
SELECT DISTINCT menu FROM restaurant
Testing functions
BETWEEN
V$
34. _________ rows are not allowed in the relational model.
Orphan
Self-joins
ADD_MONTHS function
Nested
35. What is Oracle's most popular index storage structure?
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.
B-Tree Index
Nested
Columns
36. The focus of the logical data model is _____________
Business problems
Combine
Null
MINUS
37. The COUNT function is useful for determining whether a table has...
Crow's foot
Data
X
All caps
38. 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
39. Match each of the SQL commands on the left with a verb from the list.
Time zone
Equijoin and identical column names
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ON
40. _________________ relationships are always optional relationships.
Any
Location of the file
Recursive
DECODE
41. The same function can be used ______ in a SELECT statement.
Twice
SELECT SYSDATE+1/96 - FROM dual
Results
B-Tree Index
42. Explain how the SPOOL command is used and what program it can be used in.
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
Running a script file
ADD
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
43. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Export Data
Any
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Results
44. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
SUM
SYSDATE
4000
45. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
Actual column
Testing functions
UNION operator
46. The query retrieves more than 5 to 15 percent of the rows
TO_CHAR function
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Surrogate key
+
47. 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.
Self-joins
Scale
VALUES
Actual column
48. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Data
Leading-edge
RUN SCRIPT
Surrogate
49. What is the tab in SQL Developer where data dictionary view information can be found?
Details
Equijoin and correlated subquery
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
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
50. __________________ inserts the current date and time.
DICTIONARY
UNION
SYSDATE
BETWEEN