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. A join across three tables can be expressed with the ________ join syntax.
ANSI
Self-joins
Parent table
ALL_OBJECTS
2. List 6 Table-Related Menu Choices
Time zone
Both MIN and MAX
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Committed
3. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
KEEP INDEX
Fractional seconds
VALUES clause of an INSERT statement
Extra spaces
4. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
+
BETWEEN
Default is 14; when you use the default - you repeat the heading every 14 rows.
Rounded edges
5. List the different types of data dictionary views.
STORAGE
All caps
USER_ - ALL_ - DBA_ - and V$
Scalar
6. Dynamic views begin with a ___________.
V$
Optional
Running a script file
CLOB
7. It is considered good form to put all SQL commands in...
Multiple rows
VALUES
UNION
All caps
8. The COUNT function uses the __________ wildcard.
Data
B-Tree Index
Optional
Asterisk
9. What does the following function return? SELECT LENGTH(NULL) - FROM dual
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
UNION
Null
Multiple rows
10. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
B-Tree Index
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
TO_CHAR function
11. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
ON
All caps
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.
12. The COUNT function is useful for determining whether a table has...
Running a script file
ADD
All caps
Data
13. In SQL Developer field names and table names are shown in the color _______.
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.
Black
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
All
14. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
ALL_OBJECTS
Combine
RENAME just_two_more_weeks TO finally_i
Optional
15. A transaction is a...
12:00:00 A.M
Logical unit of work
Correlated
DICTIONARY
16. 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.
BETWEEN
DROP INDEX need_to_pass_i
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
FALSE
17. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
Precision
DROP INDEX need_to_pass_i
Nested
18. Match each of the SQL commands on the left with a verb from the list.
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.
RENAME just_two_more_weeks TO finally_i
Actual column
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
19. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
ON
Any
STORAGE
20. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Mathematical equations
Details
999999.9999
SELECT DISTINCT menu FROM restaurant
21. NUMBER functions can be...
Nested
Month ddth - yyyy
SUM
Asterisk
22. Returns rows if the condition is true for all the values in the list
All
NATURAL JOIN
Semicolon or forward slash
999999.9999
23. To join four tables - you must have at least _____ join conditions.
SUM
Data
Equijoin and identical column names
Three
24. A _________ subquery returns a single column with a single row
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
Scalar
25. Converting a text literal to DATE format requires the use of the...
Primary key/foreign key
VALUES clause of an INSERT statement
ADD
TO_CHAR function
26. When column names on the tables are different - you use the ______ condition.
ON
Null
Mathematical equations
DECODE
27. 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.
Command returns the number of records returned by a query.
Re-create
A correct statement
Has not changed the name
28. List the steps performed by a correlated subquery.
Surrogate key
Primary key/foreign key
**** 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
IN ANY ALL SOME
29. The __________ operator is inclusive of the two values specified.
4
BETWEEN
INTERSECT
Equijoin and correlated subquery
30. _________________ relationships are always optional relationships.
ANSI
Recursive
A correct statement
The indexed column is part of an expression. In this case - consider creating a function-based index instead
31. PAGESIZE
**** 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
Null
X
Default is 14; when you use the default - you repeat the heading every 14 rows.
32. To restart a sequence at a lower number - you can drop and ________ the sequence.
Implicit conversion
Re-create
Nested
ANY
33. When you have issued a DELETE command - you can still ________ those rows and restore the information.
VALUES
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
Retrieve
The way NULL values are treated
34. Which operator is most commonly used?
BETWEEN
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
Month ddth - yyyy
UNION
35. SELECT LIST of a subquery in an INSERT statement
Business problems
User-defined reports
SET clause of an UPDATE statement
A correct statement
36. To equijoin a table with another table involves matching the...
Month ddth - yyyy
+
Common column value
Hide data
37. The _______ operator determines common rows.
Common column value
INTERSECT
Precision
Leading-edge
38. In a view you can give a column a different name than it has in the...
Same
TO_CHAR function
Parent table
Re-create
39. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
Twice
Crow's foot
Scalar
40. List the reasons that a subquery could not be unnested.
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.
UTC
Another null
X
41. What is the tab in SQL Developer where data dictionary view information can be found?
Details
2000
All caps
BETWEEN
42. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
KEEP INDEX
VALUES clause of an INSERT statement
999999.9999
ANY
43. 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
44. Checks whether any value in the list makes the condition true.
DROP INDEX need_to_pass_i
Business problems
Results
Any
45. A calculation with a null always yields...
Another null
Groups
LIKE
Re-create
46. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
99.99
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
V$
LIKE
47. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
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
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
48. What is the keyboard shortcut for the ROLLBACK command?
Default is 14; when you use the default - you repeat the heading every 14 rows.
LENGTH
F12
SYSDATE
49. Users can only see changes made to a database once they have been...
User-defined reports
X
Actual column
Committed
50. The _____________ clause determines how rows are grouped.
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.
GROUP BY
Precision
All