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. Oracle uses the outer join operator to indicate that nulls are shown for...
Data
**** 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
Non-matching rows
Twice
2. LINESIZE
Combine
Parent table
SUM
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
3. What is Oracle's most popular index storage structure?
2000
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.
B-Tree Index
All caps
4. The time zone displacement value indicates the time difference from _______.
Mathematical equations
@ or START
Scalar
UTC
5. Explain how the SPOOL command is used and what program it can be used in.
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
SET clause of an UPDATE statement
MINUS
Rounded edges
6. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
SET clause of an UPDATE statement
Black
Same
Mathematical equations
7. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ON
The way NULL values are treated
SELECT DISTINCT menu FROM restaurant
8. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
Parent table
F12
Twice
9. 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
Equijoin and identical column names
BETWEEN
FALSE
10. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Re-create
4
Rounded edges
Multiple rows
11. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
Retrieve
+
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.
12. How many characters can you have using the VARCHAR data type?
Structured Query Language
4000
Fractional seconds
TO_CHAR function
13. What is the tab in SQL Developer where data dictionary view information can be found?
Any
4
Orphan
Details
14. The query retrieves more than 5 to 15 percent of the rows
A correct statement
MODIFY
The indexed column is part of an expression. In this case - consider creating a function-based index instead
X
15. The COUNT function uses the __________ wildcard.
RENAME just_two_more_weeks TO finally_i
INTERSECT
Asterisk
VALUES
16. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
SYSDATE
Twice
Structured Query Language
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
17. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
LENGTH
CLOB
ALL_OBJECTS
18. The _______ function adds values together for a group of rows.
SUM
RUN SCRIPT
Command returns the number of records returned by a query.
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.
19. Write a solution that adds 20 minutes to a given date.
12:00:00 A.M
Data
SELECT SYSDATE+1/96 - FROM dual
Leading-edge
20. The ______ operator compares a list of values for equivalency
Inconsistencies
Surrogate
ANY
CLOB
21. The DUAL table can be used for...
Recursive
ANSI
Default is 14; when you use the default - you repeat the heading every 14 rows.
Testing functions
22. SQL*Plus is used more than SQL Developer when you need to...
Implicit conversion
Precision
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Run scripts
23. Users can only see changes made to a database once they have been...
Optional
Common column value
Committed
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.
24. 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.
FALSE
VALUES
DROP INDEX need_to_pass_i
Any
25. Checks whether any value in the list makes the condition true.
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.
Columns
Any
999999.9999
26. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
Script
INTERSECT
Export Data
27. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
BETWEEN
Columns
Default is 14; when you use the default - you repeat the heading every 14 rows.
28. 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?
Equijoin
KEEP INDEX
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
DICTIONARY
29. Queries that are found in parentheses are done first - just as in the order of operations when doing...
ANSI
Mathematical equations
FALSE
Export Data
30. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
CLOB
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.
RIGHT LEFT JOIN
SELECT DISTINCT menu FROM restaurant
31. You can pass parameters from the operating system when ___________ in SQl*Plus
Precision
Business problems
Running a script file
Combine
32. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
**** 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
Rounded edges
When the table is small (unless your business rules require you too)
Optional
33. The _______ operator determines common rows.
SELECT SYSDATE+1/96 - FROM dual
Multiple rows
BETWEEN
INTERSECT
34. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
All caps
Mathematical equations
X
Combine
35. To restart a sequence at a lower number - you can drop and ________ the sequence.
ADD_MONTHS function
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.
Re-create
Parent table
36. Explain what is found in the All Objects report folder in SQL Developer
Scale
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
ANSI
Structured Query Language
37. To equijoin a table with another table involves matching the...
Location of the file
Common column value
Twice
The indexed column is part of an expression. In this case - consider creating a function-based index instead
38. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Implicit conversion
SET clause of an UPDATE statement
Equijoin and correlated subquery
INNER JOIN
39. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
SELECT SYSDATE+1/96 - FROM dual
Has not changed the name
DROP INDEX need_to_pass_i
Both MIN and MAX
40. 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.
RIGHT LEFT JOIN
NATURAL JOIN
X
Asterisk
41. You can use the ________________ to subtract months from a given date.
Structured Query Language
Same
ADD_MONTHS function
CLOB
42. You use the _________ keyword to add columns or constraints to a table.
ADD
Black
Rounded edges
COMMIT
43. A transaction is a...
X
Mathematical equations
STORAGE
Logical unit of work
44. SELECT LIST of a subquery in an INSERT statement
Business problems
ANSI
SET clause of an UPDATE statement
Same
45. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
ADD_MONTHS function
Data
Semicolon or forward slash
Structured Query Language
46. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
ADD_MONTHS function
Any
RIGHT LEFT JOIN
47. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Export Data
Rounded edges
12:00:00 A.M
KEEP INDEX
48. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Structured Query Language
Script
SELECT DISTINCT menu FROM restaurant
V$
49. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Both MIN and MAX
Export Data
Testing functions
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
50. FEEDBACK
Command returns the number of records returned by a query.
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.
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
Correlated