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. Joins involving multiple columns must always follow the ____________ relationship path.
SUM
Equijoin and identical column names
DECODE
Primary key/foreign key
2. Converting a text literal to DATE format requires the use of the...
Mathematical equations
Run scripts
GROUP BY
TO_CHAR function
3. __________________ inserts the current date and time.
LENGTH
DICT_COLUMNS
4
SYSDATE
4. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
Null
Inconsistencies
4000
5. NUMBER functions can be...
Nested
Fractional seconds
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
All
6. Explain in detail the impact of INDEXES and how they are used by Oracle.
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.
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
STORAGE
Both MIN and MAX
7. A _________ subquery returns a single column with a single row
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
Scalar
Columns
ANSI
8. Explain the steps needed to run a script in SQL Developer
All
The indexed column is part of an expression. In this case - consider creating a function-based index instead
The way NULL values are treated
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.
9. What are the main components of a ROWID?
Leading-edge
ANY
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.
Export Data
10. What do views do that makes them so useful for security?
Hide data
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
LIKE
99.99
11. Dynamic views begin with a ___________.
Scalar
4
Common column value
V$
12. SQL*Plus is used more than SQL Developer when you need to...
Equijoin and identical column names
Nested
Self-joins
Run scripts
13. The term ____________ ___________ is used to express a join that satisfies the join condition.
Scale
4
When the table is small (unless your business rules require you too)
INNER JOIN
14. Users can only see changes made to a database once they have been...
Committed
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.
SELECT SYSDATE+1/96 - FROM dual
Equijoin
15. What is the most common DATE format found in SQL?
12:00:00 A.M
DD-MON-YY
Recursive
X
16. Returns rows if the condition is true for all the values in the list
SUM
All
Logical unit of work
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.
17. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Asterisk
Surrogate
Equijoin and correlated subquery
MINUS
18. The _______ function adds values together for a group of rows.
USER_ - ALL_ - DBA_ - and V$
Recursive
DD-MON-YY
SUM
19. Self-joins are useful for performing comparisons and checking for ___________ in data.
LIKE
Inconsistencies
Surrogate key
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
20. Queries that are found in parentheses are done first - just as in the order of operations when doing...
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Mathematical equations
ANY
Surrogate
21. FEEDBACK
Command returns the number of records returned by a query.
VALUES
ADD
ROLLBACK
22. What does SQL stand for?
FALSE
Structured Query Language
UNION
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
23. The _______ function lets you perform if-then-else functionality with the SQL language.
Leading-edge
DECODE
Script
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
24. The ___________ operator tests whether a matching row cannot be found.
**** 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
X
BETWEEN
Crow's foot
25. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Surrogate key
Precision
DICT_COLUMNS
Data
26. The _______ operator determines common rows.
Location of the file
Data
INTERSECT
STORAGE
27. The DUAL table can be used for...
Default is 14; when you use the default - you repeat the heading every 14 rows.
Testing functions
Equijoin and correlated subquery
Recursive
28. 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
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
INTERSECT
SYSDATE
29. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
X
Both MIN and MAX
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Twice
30. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Command returns the number of records returned by a query.
STORAGE
Scale
31. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Default is 14; when you use the default - you repeat the heading every 14 rows.
B-Tree Index
+
SELECT SYSDATE+1/96 - FROM dual
32. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Logical unit of work
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.
DROP INDEX need_to_pass_i
X
33. What is the data type you can use if you need an unlimited number of textual characters?
User-defined reports
Fractional seconds
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.
34. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
USER_ - ALL_ - DBA_ - and V$
Month ddth - yyyy
Export Data
X
35. What is the keyboard shortcut for the ROLLBACK command?
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.
4
Orphan
36. When is it not a good idea to use an index?
Export Data
99.99
When the table is small (unless your business rules require you too)
Twice
37. The same function can be used ______ in a SELECT statement.
Any
Twice
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.
X
38. Explain what is found in the All Objects report folder in SQL Developer
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Same
X
ROLLBACK
39. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
The indexed column is part of an expression. In this case - consider creating a function-based index instead
99.99
Results
40. The purpose of the HAVING clause is to eliminate___________.
X
Surrogate key
Groups
Rounded edges
41. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
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
Asterisk
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
42. SELECT * FROM instructor ORDER BY phone
Fractional seconds
A correct statement
Semicolon or forward slash
Groups
43. You can pass parameters from the operating system when ___________ in SQl*Plus
USER_ - ALL_ - DBA_ - and V$
Logical unit of work
Running a script file
Null
44. 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
45. The key that most database designers prefer and is chosen by the system is the _____________ key.
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.
UNION
Null
Surrogate
46. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Primary key/foreign key
UTC
User-defined reports
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.
47. 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
BETWEEN
Any
DECODE
48. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.
MODIFY
Any
VALUES
The way NULL values are treated
49. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Common column value
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
FALSE
INNER JOIN
50. List the reasons that a subquery could not be unnested.
Groups
Self-joins
Scale
X