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. The ALTER SESSION statement can change the session's...
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.
Has not changed the name
Time zone
Parent table
2. You can pass parameters from the operating system when ___________ in SQl*Plus
All
IN ANY ALL SOME
Running a script file
Results
3. You use the _________ keyword to add columns or constraints to a table.
Committed
INTERSECT
ADD
Logical unit of work
4. ____________ are useful for analyzing and exploring the relationships within your data
X
Self-joins
99.99
All
5. Explicit data type conversion is preferable to Oracle's...
GROUP BY
Default is 14; when you use the default - you repeat the heading every 14 rows.
LIKE
Implicit conversion
6. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Equijoin and correlated subquery
Precision
Inconsistencies
MODIFY
7. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
2000
12:00:00 A.M
999999.9999
8. Checks whether any value in the list makes the condition true.
The way NULL values are treated
Any
Mathematical equations
Groups
9. What is the maximum value for a column defined as NUMBER(4 -2)?
Static or dynamic
SELECT DISTINCT menu FROM restaurant
4
99.99
10. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
999999.9999
Semicolon or forward slash
Re-create
DROP INDEX need_to_pass_i
11. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
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.
Actual column
RUN SCRIPT
12. What does SQL stand for?
Structured Query Language
Asterisk
RUN SCRIPT
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.
13. The ________ operator cannot compare against a list of values.
FALSE
Nested
User-defined reports
LIKE
14. A transaction is a...
2000
Logical unit of work
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
ADD_MONTHS function
15. NUMBER functions can be...
V$
Export Data
Nested
Script
16. The _____________ clause determines how rows are grouped.
Same
GROUP BY
MODIFY
KEEP INDEX
17. _________ rows are not allowed in the relational model.
Running a script file
Orphan
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Surrogate key
18. What is the most common DATE format found in SQL?
Multiple rows
DD-MON-YY
LENGTH
Crow's foot
19. You use the __________ keyword to change characteristics of a column.
Month ddth - yyyy
Non-matching rows
MODIFY
VALUES
20. Users can only see changes made to a database once they have been...
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
Committed
X
Primary key/foreign key
21. Write a statement for SQL*Plus that shows the dictionary.
COMMIT
DICTIONARY
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
DESC dict;
22. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
SYSDATE
ROLLBACK
UNION operator
23. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Rounded edges
+
User-defined reports
ADD_MONTHS function
24. The ______ operator compares a list of values for equivalency
GROUP BY
ANY
Rounded edges
Business problems
25. The COUNT function uses the __________ wildcard.
Asterisk
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.
User-defined reports
ALL_OBJECTS
26. Subqueries can return...
Multiple rows
NATURAL JOIN
UNION operator
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
27. The _______ function adds values together for a group of rows.
SUM
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.
Scale
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
28. Write a solution that adds 20 minutes to a given date.
SUM
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
12:00:00 A.M
SELECT SYSDATE+1/96 - FROM dual
29. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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.
Null
Self-joins
30. To join four tables - you must have at least _____ join conditions.
Three
Command returns the number of records returned by a query.
Retrieve
GROUP BY
31. SELECT LIST of a subquery in an INSERT statement
2000
All
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
SET clause of an UPDATE statement
32. The ____________ command makes changes permanent.
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.
COMMIT
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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.
33. What is the tab in SQL Developer where data dictionary view information can be found?
DESC dict;
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
Details
999999.9999
34. 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
35. What is the keyboard shortcut for the ROLLBACK command?
IN ANY ALL SOME
F12
**** 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
Parent table
36. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Self-joins
Three
Twice
37. Write the syntax to rename index just_two_more_weeks_i to finally_i
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.
RENAME just_two_more_weeks TO finally_i
Asterisk
38. The same function can be used ______ in a SELECT statement.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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.
+
Twice
39. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
Implicit conversion
RENAME just_two_more_weeks TO finally_i
Leading-edge
40. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
RUN SCRIPT
Export Data
UNION
Equijoin and correlated subquery
41. The RTRIM function is useful for eliminating ________ in a string.
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.
Rounded edges
Extra spaces
Structured Query Language
42. Explain how Substitution Variables are used when writing scripts.
Optional
SELECT DISTINCT menu FROM restaurant
Fractional seconds
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.
43. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
SELECT DISTINCT menu FROM restaurant
99.99
Another null
RUN SCRIPT
44. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
Script
DECODE
When the table is small (unless your business rules require you too)
45. Oracle uses the outer join operator to indicate that nulls are shown for...
Leading-edge
Another null
Nested
Non-matching rows
46. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
DROP INDEX need_to_pass_i
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
47. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
CLOB
VALUES clause of an INSERT statement
Export Data
48. UNION ALL does not sort - therefore it is less time consuming to use than the...
999999.9999
USER_ - ALL_ - DBA_ - and V$
UNION operator
DICTIONARY
49. Checks whether any value in the list makes the condition true.
RIGHT LEFT JOIN
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
LIKE
Any
50. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
DD-MON-YY
X
Fractional seconds
Default is 14; when you use the default - you repeat the heading every 14 rows.