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. In a view you can give a column a different name than it has in the...
Running a script file
ADD_MONTHS function
Parent table
Re-create
2. Explain how Substitution Variables are used when writing scripts.
X
Any
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.
Structured Query Language
3. The time zone displacement value indicates the time difference from _______.
Correlated
Command returns the number of records returned by a query.
UTC
Running a script file
4. The ____________ command makes changes permanent.
COMMIT
SYSDATE
Nested
When the table is small (unless your business rules require you too)
5. Write a solution that adds 20 minutes to a given date.
Location of the file
SELECT SYSDATE+1/96 - FROM dual
Optional
Orphan
6. Explain what is found in the All Objects report folder in SQL Developer
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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
B-Tree Index
7. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
INTERSECT
Re-create
Rounded edges
9. How many characters can be stored in the CHAR column/field?
NATURAL JOIN
ADD_MONTHS function
TO_CHAR function
2000
10. The _______ function adds values together for a group of rows.
Leading-edge
Equijoin
Primary key/foreign key
SUM
11. The same function can be used ______ in a SELECT statement.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
BETWEEN
Twice
SYSDATE
12. List the reasons that a subquery could not be unnested.
RIGHT LEFT JOIN
INNER JOIN
Details
X
13. How many characters can you have using the VARCHAR data type?
INNER JOIN
4000
Hide data
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
14. List 4 aggregate functions
Scale
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Asterisk
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
15. When you have issued a DELETE command - you can still ________ those rows and restore the information.
MINUS
Semicolon or forward slash
Groups
Retrieve
16. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
12:00:00 A.M
FALSE
DROP INDEX need_to_pass_i
Mathematical equations
17. 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.
GROUP BY
DICT_COLUMNS
Has not changed the name
USER_ - ALL_ - DBA_ - and V$
18. The COUNT function is useful for determining whether a table has...
ALL_OBJECTS
Month ddth - yyyy
Multiple rows
Data
19. What is the first column of a composite index called?
Business problems
Command returns the number of records returned by a query.
Fractional seconds
Leading-edge
20. List the different types of data dictionary views.
Run scripts
USER_ - ALL_ - DBA_ - and V$
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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.
21. A _________ subquery returns a single column with a single row
Semicolon or forward slash
Default is 14; when you use the default - you repeat the heading every 14 rows.
All
Scalar
22. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Hide data
KEEP INDEX
Rounded edges
DECODE
23. The RTRIM function is useful for eliminating ________ in a string.
DECODE
LENGTH
Extra spaces
Columns
24. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
ADD
LIKE
ALL_OBJECTS
DICT_COLUMNS
25. What are the main components of a ROWID?
Black
Retrieve
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.
SET clause of an UPDATE statement
26. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
All
Export Data
2000
Precision
27. In SQL Developer field names and table names are shown in the color _______.
Another null
Black
Results
ANY
28. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Rounded edges
STORAGE
Equijoin and identical column names
IN ANY ALL SOME
29. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
BETWEEN
COMMIT
VALUES clause of an INSERT statement
Non-matching rows
30. To join four tables - you must have at least _____ join conditions.
Testing functions
Structured Query Language
All caps
Three
31. What is the tab in SQL Developer where data dictionary view information can be found?
Any
STORAGE
V$
Details
32. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
GROUP BY
Fractional seconds
The way NULL values are treated
Results
33. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
Structured Query Language
Same
GROUP BY
34. Another name for a data dictionary view is __________________ or _________________.
LIKE
Equijoin
Orphan
Static or dynamic
35. The ROWID pseudocolumn is not an ________- but it acts like one.
ANSI
Equijoin
Mathematical equations
Actual column
36. Oracle uses the outer join operator to indicate that nulls are shown for...
Non-matching rows
Common column value
4000
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
37. The __________ operator is inclusive of the two values specified.
BETWEEN
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.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Has not changed the name
38. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
RIGHT LEFT JOIN
ROLLBACK
Same
User-defined reports
39. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
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.
99.99
When the table is small (unless your business rules require you too)
40. What is the most common DATE format found in SQL?
Leading-edge
Equijoin and identical column names
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
DD-MON-YY
41. SELECT LIST of a subquery in an INSERT statement
@ or START
SET clause of an UPDATE statement
Three
Primary key/foreign key
42. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
FALSE
SELECT DISTINCT menu FROM restaurant
DECODE
Static or dynamic
43. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
INTERSECT
BETWEEN
LIKE
44. PAGESIZE
Script
Default is 14; when you use the default - you repeat the heading every 14 rows.
Semicolon or forward slash
V$
45. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
DICTIONARY
Location of the file
Implicit conversion
46. Which format mask displays December 31st - 1999?
ADD
Retrieve
Month ddth - yyyy
ADD_MONTHS function
47. Converting a text literal to DATE format requires the use of the...
COMMIT
TO_CHAR function
MODIFY
NATURAL JOIN
48. UNION ALL does not sort - therefore it is less time consuming to use than the...
Rounded edges
TO_CHAR function
UNION operator
User-defined reports
49. What is the name of the key automatically generated from a sequence?
TO_CHAR function
Results
Crow's foot
Surrogate key
50. You use the __________ keyword to change characteristics of a column.
ADD_MONTHS function
MODIFY
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.
Leading-edge