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 the most common DATE format found in SQL?
DD-MON-YY
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
SYSDATE
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.
2. 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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Black
UTC
3. What does the following function return? SELECT LENGTH(NULL) - FROM dual
ALL_OBJECTS
Null
All
The indexed column is part of an expression. In this case - consider creating a function-based index instead
4. The ALTER SESSION statement can change the session's...
Actual column
Primary key/foreign key
Time zone
Surrogate key
5. What does SQL stand for?
UNION operator
STORAGE
DECODE
Structured Query Language
6. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
STORAGE
Rounded edges
FALSE
7. UNION ALL does not sort - therefore it is less time consuming to use than the...
ANY
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
UNION operator
When the table is small (unless your business rules require you too)
8. The ____________ command makes changes permanent.
**** 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
Surrogate key
COMMIT
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. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
TO_CHAR function
Scalar
Any
10. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
UNION operator
Script
Testing functions
Multiple rows
11. Explain what is found in the All Objects report folder in SQL Developer
Any
Rounded edges
2000
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
12. Subqueries can return...
Multiple rows
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
Asterisk
The way NULL values are treated
13. When you have issued a DELETE command - you can still ________ those rows and restore the information.
4
ADD_MONTHS function
F12
Retrieve
14. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
Retrieve
Running a script file
USER_ - ALL_ - DBA_ - and V$
15. SELECT LIST of a subquery in an INSERT statement
Both MIN and MAX
SET clause of an UPDATE statement
Data
DICT_COLUMNS
16. The TRUNC function on a date without a format model truncates the timestamp to...
Null
12:00:00 A.M
Leading-edge
Columns
17. NUMBER functions can be...
Nested
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
Non-matching rows
UNION
18. The _______ operator determines common rows.
Correlated
INTERSECT
ADD_MONTHS function
Combine
19. Checks whether any value in the list makes the condition true.
Structured Query Language
Non-matching rows
ADD_MONTHS function
Any
20. What is the tab in SQL Developer where data dictionary view information can be found?
Details
X
GROUP BY
UTC
21. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
UTC
DICT_COLUMNS
MINUS
Results
22. 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.
INTERSECT
SUM
ANSI
VALUES
23. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
LENGTH
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
@ or START
Re-create
24. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
12:00:00 A.M
Semicolon or forward slash
X
STORAGE
25. SQL*Plus is used more than SQL Developer when you need to...
ROLLBACK
Run scripts
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.
DESC dict;
26. FEEDBACK
Time zone
FALSE
Command returns the number of records returned by a query.
X
27. _________ rows are not allowed in the relational model.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Semicolon or forward slash
Orphan
SUM
28. __________________ inserts the current date and time.
Inconsistencies
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
SYSDATE
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. What is the keyboard shortcut for the ROLLBACK command?
F12
VALUES
Details
Null
30. Write the syntax to rename index just_two_more_weeks_i to finally_i
Equijoin and correlated subquery
SUM
Default is 14; when you use the default - you repeat the heading every 14 rows.
RENAME just_two_more_weeks TO finally_i
31. _________________ relationships are always optional relationships.
RENAME just_two_more_weeks TO finally_i
@ or START
Recursive
Mathematical equations
32. Oracle uses the outer join operator to indicate that nulls are shown for...
KEEP INDEX
Non-matching rows
Extra spaces
Logical unit of work
33. The time zone displacement value indicates the time difference from _______.
Groups
Common column value
UTC
Twice
34. In a view you can give a column a different name than it has in the...
Results
Parent table
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.
ROLLBACK
35. What is the main difference between the NOT EXISTS and the NOT IN operators?
STORAGE
Export Data
The way NULL values are treated
SELECT DISTINCT menu FROM restaurant
36. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
DESC dict;
Optional
Nested
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.
37. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Primary key/foreign key
+
Scale
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
38. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
RENAME just_two_more_weeks TO finally_i
Same
Implicit conversion
999999.9999
39. 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
40. It is considered good form to put all SQL commands in...
ADD
IN ANY ALL SOME
4000
All caps
41. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
ANY
@ or START
Another null
Asterisk
42. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
User-defined reports
+
43. 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
44. ____________ are useful for analyzing and exploring the relationships within your data
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Self-joins
**** 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
Extra spaces
45. Users can only see changes made to a database once they have been...
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.
Committed
Testing functions
CLOB
46. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
999999.9999
Time zone
Actual column
The way NULL values are treated
47. Dynamic views begin with a ___________.
FALSE
KEEP INDEX
ANY
V$
48. Comparison operators can compare multiple _________________.
Columns
GROUP BY
UNION
Any
49. To equijoin a table with another table involves matching the...
Common column value
VALUES clause of an INSERT statement
SUM
ON
50. What is the name of the key automatically generated from a sequence?
Surrogate key
+
Extra spaces
RIGHT LEFT JOIN