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. 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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
The way NULL values are treated
Recursive
2. Which one of the following string functions tells you how many characters are in a string?
Null
ANY
LENGTH
ANSI
3. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
When the table is small (unless your business rules require you too)
+
Any
All caps
4. Which operator is most commonly used?
Surrogate
2000
UTC
UNION
5. What is the keyboard shortcut for the ROLLBACK command?
12:00:00 A.M
F12
Null
SELECT SYSDATE+1/96 - FROM dual
6. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
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
999999.9999
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.
7. You can use the ________________ to subtract months from a given date.
Non-matching rows
Hide data
999999.9999
ADD_MONTHS function
8. Users can only see changes made to a database once they have been...
Any
MODIFY
Committed
Twice
9. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
RIGHT LEFT JOIN
When the table is small (unless your business rules require you too)
Multiple rows
10. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
Run scripts
Groups
Another null
11. SELECT LIST of a subquery in an INSERT statement
Actual column
UTC
VALUES
SET clause of an UPDATE statement
12. The ___________ operator tests whether a matching row cannot be found.
X
All caps
Same
SELECT SYSDATE+1/96 - FROM dual
13. When you run a script in SQL*Plus you must give the...
Location of the file
MINUS
Precision
Equijoin
14. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
SET clause of an UPDATE statement
Implicit conversion
BETWEEN
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
15. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Export Data
Semicolon or forward slash
Primary key/foreign key
Testing functions
16. A _________ subquery returns a single column with a single row
Static or dynamic
When the table is small (unless your business rules require you too)
NATURAL JOIN
Scalar
17. Explicit data type conversion is preferable to Oracle's...
Mathematical equations
Script
Parent table
Implicit conversion
18. In a view you can give a column a different name than it has in the...
Black
Parent table
Location of the file
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
19. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Black
Orphan
Null
The way NULL values are treated
20. How many characters can be stored in the CHAR column/field?
Any
User-defined reports
2000
@ or START
21. Explain the steps needed to run a script in SQL Developer
Mathematical equations
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.
All caps
User-defined reports
22. What does SQL stand for?
12:00:00 A.M
UNION
Structured Query Language
Equijoin and correlated subquery
23. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
Results
Null
LIKE
24. What is the main difference between the NOT EXISTS and the NOT IN operators?
Inconsistencies
Nested
The way NULL values are treated
@ or START
25. Explain how Substitution Variables are used when writing scripts.
Extra spaces
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
B-Tree Index
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.
26. 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
MINUS
X
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
27. The COUNT function uses the __________ wildcard.
Asterisk
Equijoin and identical column names
ADD
Script
28. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Implicit conversion
Location of the file
Same
KEEP INDEX
29. The focus of the logical data model is _____________
Business problems
+
The way NULL values are treated
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
30. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
LENGTH
Equijoin
GROUP BY
Extra spaces
31. What is the most common DATE format found in SQL?
Running a script file
DD-MON-YY
DROP INDEX need_to_pass_i
Both MIN and MAX
32. Explain in detail the impact of INDEXES and how they are used by Oracle.
Equijoin and identical column names
Recursive
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
USER_ - ALL_ - DBA_ - and V$
33. What is the tab in SQL Developer where data dictionary view information can be found?
+
Details
999999.9999
Multiple rows
34. The purpose of the HAVING clause is to eliminate___________.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Groups
ALL_OBJECTS
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
35. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Optional
12:00:00 A.M
LENGTH
Rounded edges
36. 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
37. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
Precision
Testing functions
Has not changed the name
38. The TRUNC function on a date without a format model truncates the timestamp to...
Time zone
ANSI
12:00:00 A.M
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
39. Dynamic views begin with a ___________.
V$
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Fractional seconds
Business problems
40. You use the __________ keyword to change characteristics of a column.
MODIFY
Results
Committed
Crow's foot
41. 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?
ON
DICTIONARY
Common column value
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
42. The __________ operator is inclusive of the two values specified.
BETWEEN
Time zone
DECODE
Actual column
43. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
F12
A correct statement
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
MINUS
44. You use the _________ keyword to add columns or constraints to a table.
Precision
Multiple rows
ADD
12:00:00 A.M
45. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
IN ANY ALL SOME
4000
Optional
All
46. 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
Fractional seconds
COMMIT
DD-MON-YY
47. __________________ inserts the current date and time.
Business problems
GROUP BY
SYSDATE
Non-matching rows
48. A join across three tables can be expressed with the ________ join syntax.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Non-matching rows
ANSI
Time zone
49. Joins involving multiple columns must always follow the ____________ relationship path.
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
Primary key/foreign key
ON
Black
50. Write the syntax to rename index just_two_more_weeks_i to finally_i
Time zone
RENAME just_two_more_weeks TO finally_i
Command returns the number of records returned by a query.
Retrieve