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. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
Committed
CLOB
Static or dynamic
2. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Crow's foot
Script
Export Data
RUN SCRIPT
3. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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
X
Leading-edge
FALSE
4. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
USER_ - ALL_ - DBA_ - and V$
Optional
MINUS
Both MIN and MAX
5. Dynamic views begin with a ___________.
Command returns the number of records returned by a query.
V$
Extra spaces
FALSE
6. Oracle uses the outer join operator to indicate that nulls are shown for...
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.
Non-matching rows
Has not changed the name
Primary key/foreign key
7. A transaction is a...
Columns
Scale
Logical unit of work
Location of the file
8. What is the maximum value for a column defined as NUMBER(4 -2)?
Equijoin and correlated subquery
Static or dynamic
99.99
GROUP BY
9. To equijoin a table with another table involves matching the...
ROLLBACK
Common column value
Non-matching rows
Leading-edge
10. SELECT LIST of a subquery in an INSERT statement
FALSE
SET clause of an UPDATE statement
KEEP INDEX
Default is 14; when you use the default - you repeat the heading every 14 rows.
11. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
ADD_MONTHS function
Fractional seconds
+
Combine
12. The ____________ command makes changes permanent.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
KEEP INDEX
COMMIT
DICT_COLUMNS
13. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
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.
F12
Export Data
VALUES
14. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
All caps
Crow's foot
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
Script
15. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
X
Combine
DESC dict;
16. The _____________ clause determines how rows are grouped.
GROUP BY
VALUES
B-Tree Index
Default is 14; when you use the default - you repeat the heading every 14 rows.
17. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
Orphan
Re-create
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
18. The ______ operator compares a list of values for equivalency
**** 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
BETWEEN
ANY
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
19. The TRUNC function on a date without a format model truncates the timestamp to...
SET clause of an UPDATE statement
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Retrieve
12:00:00 A.M
20. 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.
Nested
FALSE
When the table is small (unless your business rules require you too)
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
21. When you run a script in SQL*Plus you must give the...
Run scripts
Re-create
Location of the file
STORAGE
22. The _______ function adds values together for a group of rows.
RIGHT LEFT JOIN
VALUES
SUM
Leading-edge
23. 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
24. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Groups
STORAGE
Month ddth - yyyy
@ or START
25. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
VALUES clause of an INSERT statement
Location of the file
X
Script
26. Write a solution that adds 20 minutes to a given date.
Correlated
999999.9999
Mathematical equations
SELECT SYSDATE+1/96 - FROM dual
27. __________________ inserts the current date and time.
A correct statement
SYSDATE
Location of the file
Month ddth - yyyy
28. Explain how Substitution Variables are used when writing scripts.
USER_ - ALL_ - DBA_ - and V$
Scale
TO_CHAR function
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.
29. A join across three tables can be expressed with the ________ join syntax.
RUN SCRIPT
ANSI
Data
Precision
30. The _______ function lets you perform if-then-else functionality with the SQL language.
Asterisk
IN ANY ALL SOME
DICTIONARY
DECODE
31. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Groups
Rounded edges
Mathematical equations
Time zone
32. Another name for a data dictionary view is __________________ or _________________.
INTERSECT
Retrieve
All
Static or dynamic
33. UNION ALL does not sort - therefore it is less time consuming to use than the...
When the table is small (unless your business rules require you too)
Same
UNION operator
MODIFY
34. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
IN ANY ALL SOME
Retrieve
Re-create
35. 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
NATURAL JOIN
Leading-edge
The indexed column is part of an expression. In this case - consider creating a function-based index instead
36. List 4 aggregate functions
VALUES clause of an INSERT statement
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.
LENGTH
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
37. Write the syntax to rename index just_two_more_weeks_i to finally_i
Location of the file
SUM
MODIFY
RENAME just_two_more_weeks TO finally_i
38. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
User-defined reports
99.99
BETWEEN
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
39. 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?
Running a script file
DICTIONARY
Groups
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
40. The _______ operator determines common rows.
INTERSECT
Parent table
UNION operator
Scalar
41. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
TO_CHAR function
Asterisk
Equijoin
**** 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
42. Write a statement for SQL*Plus that shows the dictionary.
VALUES
DESC dict;
Parent table
Equijoin and identical column names
43. 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.
Script
+
VALUES
Extra spaces
44. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
INNER JOIN
IN ANY ALL SOME
All caps
Scale
45. What is the first column of a composite index called?
Three
Leading-edge
Time zone
SET clause of an UPDATE statement
46. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
SYSDATE
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.
LENGTH
47. The purpose of the HAVING clause is to eliminate___________.
FALSE
Groups
Any
ANY
48. A _________ subquery returns a single column with a single row
Primary key/foreign key
Scalar
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.
Optional
49. The COUNT function uses the __________ wildcard.
COMMIT
Asterisk
X
2000
50. What are the main components of a ROWID?
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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.
SET clause of an UPDATE statement