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 Oracle's most popular index storage structure?
B-Tree Index
Primary key/foreign key
LENGTH
Equijoin
2. The ____________ command makes changes permanent.
COMMIT
INTERSECT
UNION
Groups
3. The key that most database designers prefer and is chosen by the system is the _____________ key.
Primary key/foreign key
Surrogate
Same
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
4. You can pass parameters from the operating system when ___________ in SQl*Plus
**** 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
Running a script file
Any
Structured Query Language
5. Returns rows if the condition is true for all the values in the list
ON
F12
Export Data
All
6. You use the _________ keyword to add columns or constraints to a table.
Both MIN and MAX
Business problems
ADD
USER_ - ALL_ - DBA_ - and V$
7. The RTRIM function is useful for eliminating ________ in a string.
TO_CHAR function
RUN SCRIPT
Extra spaces
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
8. 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.
CLOB
FALSE
Semicolon or forward slash
2000
9. The same function can be used ______ in a SELECT statement.
Primary key/foreign key
Self-joins
Semicolon or forward slash
Twice
10. What is the data type you can use if you need an unlimited number of textual characters?
@ or START
+
Equijoin and identical column names
CLOB
11. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Asterisk
ALL_OBJECTS
SELECT DISTINCT menu FROM restaurant
Month ddth - yyyy
12. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
+
Time zone
IN ANY ALL SOME
Orphan
13. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Parent table
UNION operator
MINUS
STORAGE
14. The ROWID pseudocolumn is not an ________- but it acts like one.
99.99
Another null
Actual column
SELECT DISTINCT menu FROM restaurant
15. You use the __________ keyword to change characteristics of a column.
X
ALL_OBJECTS
When the table is small (unless your business rules require you too)
MODIFY
16. What does SQL stand for?
INNER JOIN
Structured Query Language
Optional
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
17. In a view you can give a column a different name than it has in the...
Run scripts
Parent table
Hide data
Export Data
18. 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.
4
Null
Scalar
RIGHT LEFT JOIN
19. To equijoin a table with another table involves matching the...
SYSDATE
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
When the table is small (unless your business rules require you too)
Common column value
20. How many characters can be stored in the CHAR column/field?
When the table is small (unless your business rules require you too)
2000
Multiple rows
DECODE
21. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Default is 14; when you use the default - you repeat the heading every 14 rows.
CLOB
Mathematical equations
Fractional seconds
22. The ___________ operator tests whether a matching row cannot be found.
Any
Inconsistencies
Recursive
X
23. What is the name of the key automatically generated from a sequence?
+
DROP INDEX need_to_pass_i
F12
Surrogate key
24. Explicit data type conversion is preferable to Oracle's...
Another null
Asterisk
Implicit conversion
@ or START
25. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Extra spaces
X
SYSDATE
F12
26. The term ____________ ___________ is used to express a join that satisfies the join condition.
TO_CHAR function
Equijoin and correlated subquery
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
INNER JOIN
27. The _______ operator determines common rows.
X
Running a script file
INTERSECT
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
28. The _______ function adds values together for a group of rows.
KEEP INDEX
Crow's foot
SUM
All
29. 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.
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.
KEEP INDEX
INNER JOIN
30. Explain how the SPOOL command is used and what program it can be used in.
Structured Query Language
SET clause of an UPDATE statement
SELECT SYSDATE+1/96 - FROM dual
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
31. How many characters can you have using the VARCHAR data type?
DROP INDEX need_to_pass_i
Same
4000
Testing functions
32. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
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
VALUES
X
Testing functions
33. Oracle uses the outer join operator to indicate that nulls are shown for...
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
Non-matching rows
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
INNER JOIN
34. The __________ operator is inclusive of the two values specified.
BETWEEN
Export Data
USER_ - ALL_ - DBA_ - and V$
Business problems
35. Comparison operators can compare multiple _________________.
Columns
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 the table is small (unless your business rules require you too)
Export Data
36. 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.
IN ANY ALL SOME
Rounded edges
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
VALUES
37. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
Implicit conversion
Scale
ANY
38. The TRUNC function on a date without a format model truncates the timestamp to...
Combine
Groups
LENGTH
12:00:00 A.M
39. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
Another null
FALSE
Time zone
40. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
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.
@ or START
Testing functions
Export Data
41. Write a statement that drops the index need_to_pass_i
KEEP INDEX
ROLLBACK
DROP INDEX need_to_pass_i
Export Data
42. The DUAL table can be used for...
Same
Testing functions
LENGTH
Orphan
43. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
MODIFY
Committed
Optional
SUM
44. Subqueries can return...
Run scripts
Multiple rows
Actual column
User-defined reports
45. What is the most common DATE format found in SQL?
Extra spaces
DD-MON-YY
ANSI
Primary key/foreign key
46. _________ rows are not allowed in the relational model.
Static or dynamic
Orphan
Nested
FALSE
47. The purpose of the HAVING clause is to eliminate___________.
Groups
Twice
Re-create
X
48. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
+
Time zone
Implicit conversion
49. List 4 aggregate functions
Semicolon or forward slash
ALL_OBJECTS
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
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
50. The ALTER SESSION statement can change the session's...
Equijoin
ADD
Time zone
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.