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. When column names on the tables are different - you use the ______ condition.
Retrieve
Null
ON
Optional
2. List 6 Table-Related Menu Choices
STORAGE
Details
NATURAL JOIN
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
3. The time zone displacement value indicates the time difference from _______.
UTC
Static or dynamic
B-Tree Index
Run scripts
4. A _________ subquery returns a single column with a single row
Three
Details
Scalar
DECODE
5. It is considered good form to put all SQL commands in...
4000
Black
Any
All caps
6. You can pass parameters from the operating system when ___________ in SQl*Plus
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
Re-create
Running a script file
Common column value
7. What does the following function return? SELECT LENGTH(NULL) - FROM dual
**** 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
Details
Has not changed the name
Null
8. Explain what a static data dictionary view is and how it is used
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.
Extra spaces
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.
All
9. What is the most common DATE format found in SQL?
Leading-edge
DD-MON-YY
ADD_MONTHS function
Equijoin and correlated subquery
10. Dynamic views begin with a ___________.
X
Location of the file
TO_CHAR function
V$
11. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
ROLLBACK
The way NULL values are treated
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
12. The ______ depicts the M of a 1:M relationship.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
13. 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
14. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Retrieve
LIKE
Export Data
Any
15. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
SELECT SYSDATE+1/96 - FROM dual
Optional
UNION operator
Semicolon or forward slash
16. Explain what is found in the All Objects report folder 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.
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.
Hide data
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
17. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
V$
12:00:00 A.M
Self-joins
Fractional seconds
18. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
+
Results
Business problems
19. The ____________ command makes changes permanent.
COMMIT
All caps
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
INNER JOIN
20. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
SUM
@ or START
Another null
2000
21. FEEDBACK
99.99
Command returns the number of records returned by a query.
Multiple rows
Re-create
22. The COUNT function is useful for determining whether a table has...
V$
Running a script file
Equijoin
Data
23. Users can only see changes made to a database once they have been...
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.
Implicit conversion
Committed
BETWEEN
24. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
SET clause of an UPDATE statement
ANSI
Implicit conversion
DICT_COLUMNS
25. You can use the ________________ to subtract months from a given date.
ADD_MONTHS function
SUM
F12
DD-MON-YY
26. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
12:00:00 A.M
4000
SELECT SYSDATE+1/96 - FROM dual
IN ANY ALL SOME
27. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Surrogate key
Implicit conversion
Both MIN and MAX
+
28. Which operator is most commonly used?
2000
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.
Extra spaces
UNION
29. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
FALSE
Inconsistencies
Results
MINUS
30. Match each of the SQL commands on the left with a verb from the list.
Actual column
F12
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.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
31. 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?
User-defined reports
DICTIONARY
USER_ - ALL_ - DBA_ - and V$
Equijoin and identical column names
32. The using clause of the ANSI join syntax always assumes an...
Surrogate key
SUM
IN ANY ALL SOME
Equijoin and identical column names
33. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
+
Same
Inconsistencies
Implicit conversion
34. To join four tables - you must have at least _____ join conditions.
FALSE
Rounded edges
Three
Common column value
35. Which one of the following string functions tells you how many characters are in a string?
Command returns the number of records returned by a query.
LENGTH
Precision
2000
36. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
Twice
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ON
37. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
Precision
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.
BETWEEN
38. 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
39. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Re-create
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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Surrogate key
40. What do views do that makes them so useful for security?
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
4000
Hide data
41. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
RENAME just_two_more_weeks TO finally_i
Equijoin
User-defined reports
Same
42. You use the _________ keyword to add columns or constraints to a table.
All
A correct statement
Static or dynamic
ADD
43. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Semicolon or forward slash
Results
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
When the table is small (unless your business rules require you too)
44. Write a solution that adds 20 minutes to a given date.
Orphan
SELECT SYSDATE+1/96 - FROM dual
Scalar
FALSE
45. To restart a sequence at a lower number - you can drop and ________ the sequence.
Run scripts
Re-create
GROUP BY
MODIFY
46. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
99.99
BETWEEN
Running a script file
47. 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
ON
DD-MON-YY
48. A calculation with a null always yields...
Another null
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Three
Month ddth - yyyy
49. In SQL Developer field names and table names are shown in the color _______.
BETWEEN
Black
Combine
Orphan
50. __________________ inserts the current date and time.
ON
Run scripts
SYSDATE
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.