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. What is Oracle's most popular index storage structure?
B-Tree Index
BETWEEN
RIGHT LEFT JOIN
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
2. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
**** 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
ROLLBACK
Business problems
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.
3. Users can only see changes made to a database once they have been...
DECODE
Orphan
Committed
Surrogate key
4. What does the following function return? SELECT LENGTH(NULL) - FROM dual
SET clause of an UPDATE statement
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.
999999.9999
Null
5. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
FALSE
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Precision
6. What is the most common DATE format found in SQL?
12:00:00 A.M
Fractional seconds
999999.9999
DD-MON-YY
7. 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
DROP INDEX need_to_pass_i
A correct statement
Results
8. In a view you can give a column a different name than it has in the...
Parent table
99.99
Three
Groups
9. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
Implicit conversion
SELECT SYSDATE+1/96 - FROM dual
Results
10. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
SYSDATE
4
X
Surrogate key
11. FEEDBACK
MINUS
RENAME just_two_more_weeks TO finally_i
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
Command returns the number of records returned by a query.
12. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
The way NULL values are treated
Retrieve
Same
Orphan
13. A transaction is a...
Logical unit of work
TO_CHAR function
12:00:00 A.M
NATURAL JOIN
14. The ____________ command makes changes permanent.
Extra spaces
When the table is small (unless your business rules require you too)
Static or dynamic
COMMIT
15. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
999999.9999
MODIFY
Testing functions
Results
16. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Null
GROUP BY
SELECT DISTINCT menu FROM restaurant
Both MIN and MAX
17. The _______ operator determines common rows.
Surrogate key
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Semicolon or forward slash
INTERSECT
18. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
BETWEEN
Inconsistencies
All
19. Subqueries can return...
Multiple rows
UNION operator
Inconsistencies
Static or dynamic
20. What is the maximum value for a column defined as NUMBER(4 -2)?
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.
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
99.99
Equijoin and correlated subquery
21. Match each of the SQL commands on the left with a verb from the list.
BETWEEN
12:00:00 A.M
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Equijoin
22. Checks whether any value in the list makes the condition true.
IN ANY ALL SOME
Any
Has not changed the name
Multiple rows
23. The using clause of the ANSI join syntax always assumes an...
A correct statement
Equijoin and identical column names
DICT_COLUMNS
Orphan
24. It is considered good form to put all SQL commands in...
Columns
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.
All caps
Semicolon or forward slash
25. What do views do that makes them so useful for security?
LENGTH
Has not changed the name
Orphan
Hide data
26. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
Fractional seconds
Leading-edge
**** 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
27. Joins involving multiple columns must always follow the ____________ relationship path.
Time zone
Committed
@ or START
Primary key/foreign key
28. The ________ operator cannot compare against a list of values.
LIKE
Scalar
SELECT SYSDATE+1/96 - FROM dual
Testing functions
29. PAGESIZE
+
All
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Default is 14; when you use the default - you repeat the heading every 14 rows.
30. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Multiple rows
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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
31. 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
32. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Twice
+
Equijoin and correlated subquery
IN ANY ALL SOME
33. What is the keyboard shortcut for the ROLLBACK command?
F12
Script
999999.9999
Data
34. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
Any
4000
Correlated
35. The ___________ operator tests whether a matching row cannot be found.
LIKE
Correlated
Command returns the number of records returned by a query.
X
36. When you run a script in SQL*Plus you must give the...
Location of the file
Scale
F12
Both MIN and MAX
37. Returns rows if the condition is true for all the values in the list
UTC
All
ANSI
SYSDATE
38. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
ADD_MONTHS function
Black
Scale
Export Data
39. Explicit data type conversion is preferable to Oracle's...
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
Null
FALSE
Implicit conversion
40. How many characters can be stored in the CHAR column/field?
RENAME just_two_more_weeks TO finally_i
ANSI
Running a script file
2000
41. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Non-matching rows
Scalar
VALUES clause of an INSERT statement
Precision
42. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Twice
Script
User-defined reports
Retrieve
43. A join across three tables can be expressed with the ________ join syntax.
SYSDATE
Black
Details
ANSI
44. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Committed
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
CLOB
Command returns the number of records returned by a query.
45. What does SQL stand for?
Structured Query Language
Groups
Scale
SUM
46. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Any
NATURAL JOIN
@ or START
47. The purpose of the HAVING clause is to eliminate___________.
Equijoin and identical column names
FALSE
Groups
Location of the file
48. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Any
ANSI
MODIFY
49. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
RIGHT LEFT JOIN
LENGTH
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
50. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
UNION operator
Combine
USER_ - ALL_ - DBA_ - and V$