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 Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Hide data
12:00:00 A.M
@ or START
BETWEEN
2. What is the keyboard shortcut for the ROLLBACK command?
F12
USER_ - ALL_ - DBA_ - and V$
Script
Surrogate key
3. When column names on the tables are different - you use the ______ condition.
All caps
ON
INNER JOIN
ADD
4. Explain what is found in the All Objects report folder in SQL Developer
SET clause of an UPDATE statement
Static or dynamic
RUN SCRIPT
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
5. The purpose of the HAVING clause is to eliminate___________.
SUM
Time zone
IN ANY ALL SOME
Groups
6. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
COMMIT
SYSDATE
V$
Script
7. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
LIKE
Same
ALL_OBJECTS
MODIFY
8. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Details
Equijoin and identical column names
MINUS
UTC
9. A _________ subquery returns a single column with a single row
Command returns the number of records returned by a query.
Scalar
X
SUM
10. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
DESC dict;
Combine
STORAGE
Location of the file
11. Dynamic views begin with a ___________.
Location of the file
12:00:00 A.M
Implicit conversion
V$
12. 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
Details
ANY
Static or dynamic
13. Checks whether any value in the list makes the condition true.
LENGTH
Any
KEEP INDEX
Run scripts
14. __________________ inserts the current date and time.
Same
SYSDATE
Leading-edge
B-Tree Index
15. ____________ are useful for analyzing and exploring the relationships within your data
STORAGE
Both MIN and MAX
Self-joins
Primary key/foreign key
16. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
BETWEEN
Optional
4000
KEEP INDEX
17. Which operator is most commonly used?
INTERSECT
Hide data
UNION
2000
18. Explicit data type conversion is preferable to Oracle's...
IN ANY ALL SOME
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Implicit conversion
Another null
19. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
A correct statement
Data
RIGHT LEFT JOIN
SELECT DISTINCT menu FROM restaurant
20. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
99.99
Details
Scale
ANY
21. Explain how Substitution Variables are used when writing scripts.
DECODE
**** 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
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_OBJECTS
22. What is the first column of a composite index called?
Implicit conversion
Asterisk
Leading-edge
Time zone
23. 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.
Recursive
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
RIGHT LEFT JOIN
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
24. The query retrieves more than 5 to 15 percent of the rows
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Any
Crow's foot
NATURAL JOIN
25. How many characters can you have using the VARCHAR data type?
Equijoin and identical column names
INTERSECT
Another null
4000
26. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
4000
@ or START
USER_ - ALL_ - DBA_ - and V$
RENAME just_two_more_weeks TO finally_i
27. Users can only see changes made to a database once they have been...
Primary key/foreign key
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Committed
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
28. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
NATURAL JOIN
Another null
X
STORAGE
29. To join four tables - you must have at least _____ join conditions.
999999.9999
MINUS
All caps
Three
30. What does SQL stand for?
Logical unit of work
Script
Structured Query Language
**** 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
31. The ______ operator compares a list of values for equivalency
Orphan
Testing functions
ANY
Parent table
32. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Orphan
ROLLBACK
999999.9999
Null
33. The _______ operator determines common rows.
FALSE
INTERSECT
MINUS
Semicolon or forward slash
34. Another name for a data dictionary view is __________________ or _________________.
Rounded edges
Equijoin and identical column names
+
Static or dynamic
35. In SQL Developer field names and table names are shown in the color _______.
Black
SELECT SYSDATE+1/96 - FROM dual
Actual column
X
36. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Another null
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.
Combine
37. What are the main components of a ROWID?
Non-matching rows
All
Crow's foot
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.
38. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
Rounded edges
4
Parent table
39. You can use the ________________ to subtract months from a given date.
Script
Equijoin
ADD_MONTHS function
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
40. PAGESIZE
Re-create
Export Data
Default is 14; when you use the default - you repeat the heading every 14 rows.
Optional
41. _________________ relationships are always optional relationships.
Recursive
12:00:00 A.M
Rounded edges
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.
42. A calculation with a null always yields...
Command returns the number of records returned by a query.
99.99
RUN SCRIPT
Another null
43. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Equijoin and correlated subquery
Command returns the number of records returned by a query.
999999.9999
Both MIN and MAX
44. 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?
BETWEEN
DICTIONARY
Crow's foot
DD-MON-YY
45. The RTRIM function is useful for eliminating ________ in a string.
UNION operator
Groups
All
Extra spaces
46. 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
47. The same function can be used ______ in a SELECT statement.
Orphan
Twice
99.99
F12
48. Returns rows if the condition is true for all the values in the list
BETWEEN
Scalar
All
Null
49. A join across three tables can be expressed with the ________ join syntax.
ANSI
Any
X
Equijoin and correlated subquery
50. Explain the steps needed to run a script in SQL Developer
Extra spaces
Actual column
Multiple rows
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.