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 _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
Equijoin
USER_ - ALL_ - DBA_ - and V$
ADD_MONTHS function
2. Checks whether any value in the list makes the condition true.
Equijoin
Any
Surrogate
Results
3. The key that most database designers prefer and is chosen by the system is the _____________ key.
Extra spaces
Rounded edges
Surrogate
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
4. __________________ inserts the current date and time.
Results
Primary key/foreign key
ALL_OBJECTS
SYSDATE
5. Users can only see changes made to a database once they have been...
12:00:00 A.M
2000
Structured Query Language
Committed
6. The ________ operator cannot compare against a list of values.
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.
VALUES
Fractional seconds
7. A _________ subquery returns a single column with a single row
LIKE
Data
Scalar
LENGTH
8. Joins involving multiple columns must always follow the ____________ relationship path.
Structured Query Language
Primary key/foreign key
Null
COMMIT
9. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
ANY
UNION operator
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.
10. What is the maximum value for a column defined as NUMBER(4 -2)?
CLOB
ON
99.99
Precision
11. Write the syntax to rename index just_two_more_weeks_i to finally_i
SELECT SYSDATE+1/96 - FROM dual
Command returns the number of records returned by a query.
RENAME just_two_more_weeks TO finally_i
Actual column
12. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
ROLLBACK
+
Crow's foot
IN ANY ALL SOME
13. When you run a script in SQL*Plus you must give the...
Same
Location of the file
Committed
Extra spaces
14. To equijoin a table with another table involves matching the...
Common column value
Same
Groups
Scalar
15. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
MINUS
Fractional seconds
Equijoin and identical column names
Running a script file
16. List the different types of data dictionary views.
**** 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
FALSE
Self-joins
USER_ - ALL_ - DBA_ - and V$
17. Explain what is found in the All Objects report folder in SQL Developer
Leading-edge
INNER JOIN
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Testing functions
18. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
4000
The way NULL values are treated
SYSDATE
19. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
@ or START
X
Static or dynamic
20. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Business problems
DD-MON-YY
Equijoin
Hide data
21. The RTRIM function is useful for eliminating ________ in a string.
Surrogate
Extra spaces
Export Data
VALUES
22. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
2000
Any
Structured Query Language
23. 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
TO_CHAR function
ON
FALSE
24. To restart a sequence at a lower number - you can drop and ________ the sequence.
Re-create
Groups
Any
When the table is small (unless your business rules require you too)
25. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
Default is 14; when you use the default - you repeat the heading every 14 rows.
99.99
Committed
26. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
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.
MODIFY
Mathematical equations
27. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
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.
Correlated
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
28. Explain how the SPOOL command is used and what program it can be used in.
Self-joins
4
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
MODIFY
29. What is the most common DATE format found in SQL?
DD-MON-YY
Month ddth - yyyy
Twice
Non-matching rows
30. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
99.99
When the table is small (unless your business rules require you too)
Any
31. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
VALUES clause of an INSERT statement
KEEP INDEX
Fractional seconds
32. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Another null
Equijoin
X
FALSE
33. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Groups
Leading-edge
DECODE
Scale
34. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Command returns the number of records returned by a query.
X
Crow's foot
4
35. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Structured Query Language
B-Tree Index
Results
Common column value
36. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
Scalar
DD-MON-YY
Any
37. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
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
FALSE
RENAME just_two_more_weeks TO finally_i
User-defined reports
38. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
UNION operator
Nested
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.
39. You can pass parameters from the operating system when ___________ in SQl*Plus
+
Combine
Running a script file
Default is 14; when you use the default - you repeat the heading every 14 rows.
40. In SQL Developer field names and table names are shown in the color _______.
IN ANY ALL SOME
STORAGE
Black
ON
41. Subqueries can return...
Correlated
Multiple rows
VALUES clause of an INSERT statement
Export Data
42. What is Oracle's most popular index storage structure?
When the table is small (unless your business rules require you too)
Another null
B-Tree Index
VALUES clause of an INSERT statement
43. The term ____________ ___________ is used to express a join that satisfies the join condition.
Multiple rows
Any
INNER JOIN
ANY
44. What is the keyboard shortcut for the ROLLBACK command?
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
F12
2000
Fractional seconds
45. The COUNT function uses the __________ wildcard.
Both MIN and MAX
4
Asterisk
ANY
46. What do views do that makes them so useful for security?
UNION operator
Hide data
X
RIGHT LEFT JOIN
47. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
V$
Combine
Equijoin
FALSE
48. The query retrieves more than 5 to 15 percent of the rows
DESC dict;
The indexed column is part of an expression. In this case - consider creating a function-based index instead
GROUP BY
SYSDATE
49. SQL*Plus is used more than SQL Developer when you need to...
V$
DICT_COLUMNS
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Run scripts
50. To join four tables - you must have at least _____ join conditions.
Three
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.
Semicolon or forward slash
BETWEEN