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. The ________ operator cannot compare against a list of values.
SET clause of an UPDATE statement
Any
Correlated
LIKE
2. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
X
Combine
Any
When the table is small (unless your business rules require you too)
3. 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.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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.
CLOB
FALSE
4. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Surrogate key
Testing functions
Inconsistencies
IN ANY ALL SOME
5. The purpose of the HAVING clause is to eliminate___________.
IN ANY ALL SOME
+
Scalar
Groups
6. Explain the steps needed to run a script in SQL Developer
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.
Twice
Actual column
Columns
7. The _______ function lets you perform if-then-else functionality with the SQL language.
Fractional seconds
User-defined reports
DECODE
UNION operator
8. A calculation with a null always yields...
Another null
Leading-edge
Committed
Semicolon or forward slash
9. List 4 aggregate functions
@ or START
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.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Running a script file
10. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Correlated
Equijoin and correlated subquery
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.
INTERSECT
11. Self-joins are useful for performing comparisons and checking for ___________ in data.
Details
X
Both MIN and MAX
Inconsistencies
12. A transaction is a...
Logical unit of work
Both MIN and MAX
Null
ANY
13. When you run a script in SQL*Plus you must give the...
FALSE
SELECT SYSDATE+1/96 - FROM dual
Location of the file
INNER JOIN
14. What is the most common DATE format found in SQL?
USER_ - ALL_ - DBA_ - and V$
DD-MON-YY
The way NULL values are treated
Any
15. The _______ function adds values together for a group of rows.
Export Data
X
SUM
Has not changed the name
16. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Precision
Rounded edges
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.
Black
17. Returns rows if the condition is true for all the values in the list
All
12:00:00 A.M
DROP INDEX need_to_pass_i
X
18. Comparison operators can compare multiple _________________.
SELECT SYSDATE+1/96 - FROM dual
RUN SCRIPT
@ or START
Columns
19. The using clause of the ANSI join syntax always assumes an...
Extra spaces
Black
Equijoin and identical column names
Combine
20. Checks whether any value in the list makes the condition true.
Any
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
DICT_COLUMNS
Running a script file
21. Which one of the following string functions tells you how many characters are in a string?
Leading-edge
Equijoin
LENGTH
Recursive
22. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Surrogate key
Retrieve
Script
Hide data
23. What is Oracle's most popular index storage structure?
Any
Export Data
B-Tree Index
Another null
24. What is the keyboard shortcut for the ROLLBACK command?
Any
F12
Committed
Scalar
25. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
Nested
Inconsistencies
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
26. SQL*Plus is used more than SQL Developer when you need to...
NATURAL JOIN
4000
UNION
Run scripts
27. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
DD-MON-YY
Running a script file
RUN SCRIPT
28. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Equijoin
Mathematical equations
SELECT DISTINCT menu FROM restaurant
X
29. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Inconsistencies
GROUP BY
Location of the file
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
30. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
DICTIONARY
LENGTH
31. In SQL Developer field names and table names are shown in the color _______.
INTERSECT
Black
@ or START
SET clause of an UPDATE statement
32. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
All caps
Primary key/foreign key
2000
33. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Re-create
MODIFY
FALSE
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.
34. Checks whether any value in the list makes the condition true.
Asterisk
Any
Inconsistencies
Multiple rows
35. The ___________ operator tests whether a matching row cannot be found.
+
Scale
Scalar
X
36. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
SYSDATE
Script
Export Data
Precision
37. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
SELECT SYSDATE+1/96 - FROM dual
Results
USER_ - ALL_ - DBA_ - and V$
LENGTH
38. How many characters can you have using the VARCHAR data type?
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.
4000
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
Optional
39. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Orphan
The indexed column is part of an expression. In this case - consider creating a function-based index instead
@ or START
ADD_MONTHS function
40. The __________ operator is inclusive of the two values specified.
Rounded edges
BETWEEN
@ or START
+
41. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Running a script file
ANY
Leading-edge
42. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
SYSDATE
DICTIONARY
STORAGE
Scale
43. The _______ operator determines common rows.
All caps
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
Script
INTERSECT
44. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
USER_ - ALL_ - DBA_ - and V$
Crow's foot
UNION operator
45. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
Mathematical equations
MODIFY
V$
46. SELECT LIST of a subquery in an INSERT statement
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
Another null
Any
SET clause of an UPDATE statement
47. The same function can be used ______ in a SELECT statement.
Combine
Business problems
Twice
@ or START
48. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
Equijoin
Script
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
49. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
MINUS
ADD
VALUES clause of an INSERT statement
Nested
50. Write a statement that drops the index need_to_pass_i
99.99
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
VALUES
DROP INDEX need_to_pass_i