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. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
DICT_COLUMNS
All
ON
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
2. How many characters can you have using the VARCHAR data type?
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
Any
SYSDATE
4000
3. What is the name of the key automatically generated from a sequence?
TO_CHAR function
Mathematical equations
Columns
Surrogate key
4. You can use the ________________ to subtract months from a given date.
Three
ADD_MONTHS function
Inconsistencies
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.
5. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
ANSI
@ or START
Data
Surrogate key
6. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Crow's foot
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Null
Primary key/foreign key
7. PAGESIZE
Month ddth - yyyy
Run scripts
Three
Default is 14; when you use the default - you repeat the heading every 14 rows.
8. Explain the steps needed to run a script in SQL Developer
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.
DD-MON-YY
Static or dynamic
SELECT DISTINCT menu FROM restaurant
9. What does SQL stand for?
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Details
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.
Structured Query Language
10. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
FALSE
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.
NATURAL JOIN
COMMIT
11. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
FALSE
USER_ - ALL_ - DBA_ - and V$
Correlated
SYSDATE
12. The time zone displacement value indicates the time difference from _______.
Retrieve
UTC
Twice
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. 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
14. Write the syntax to rename index just_two_more_weeks_i to finally_i
Black
ADD_MONTHS function
Has not changed the name
RENAME just_two_more_weeks TO finally_i
15. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
Surrogate key
Twice
Crow's foot
16. ____________ are useful for analyzing and exploring the relationships within your data
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.
Self-joins
DESC dict;
DICTIONARY
17. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Equijoin and correlated subquery
Nested
+
Fractional seconds
18. What do views do that makes them so useful for security?
SELECT SYSDATE+1/96 - FROM dual
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
UNION
Hide data
19. The same function can be used ______ in a SELECT statement.
Precision
Twice
Common column value
FALSE
20. The _____________ clause determines how rows are grouped.
Three
X
LIKE
GROUP BY
21. The ______ operator compares a list of values for equivalency
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Details
Run scripts
ANY
22. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Self-joins
Retrieve
Results
Run scripts
23. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
2000
X
+
Same
24. Which format mask displays December 31st - 1999?
Common column value
Precision
Month ddth - yyyy
User-defined reports
25. SELECT * FROM instructor ORDER BY phone
Structured Query Language
X
B-Tree Index
A correct statement
26. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
DD-MON-YY
ALL_OBJECTS
All caps
4
27. To join four tables - you must have at least _____ join conditions.
LIKE
Three
BETWEEN
Scalar
28. The focus of the logical data model is _____________
IN ANY ALL SOME
V$
ON
Business problems
29. What is the keyboard shortcut for the ROLLBACK command?
A correct statement
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
F12
DECODE
30. You use the _________ keyword to add columns or constraints to a table.
Any
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Common column value
ADD
31. 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
32. What is the main difference between the NOT EXISTS and the NOT IN operators?
**** 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
The way NULL values are treated
Logical unit of work
Twice
33. NUMBER functions can be...
Nested
Crow's foot
MINUS
Leading-edge
34. Explain in detail the impact of INDEXES and how they are used by Oracle.
Has not changed the name
Both MIN and MAX
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
Hide data
35. The COUNT function uses the __________ wildcard.
Actual column
All caps
Asterisk
Run scripts
36. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Black
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.
Semicolon or forward slash
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
37. Write a solution that adds 20 minutes to a given date.
X
Equijoin and correlated subquery
SELECT SYSDATE+1/96 - FROM dual
F12
38. In a view you can give a column a different name than it has in the...
Time zone
DD-MON-YY
Scalar
Parent table
39. Write a statement for SQL*Plus that shows the dictionary.
Equijoin and identical column names
ADD
DESC dict;
Logical unit of work
40. It is considered good form to put all SQL commands in...
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Common column value
Export Data
All caps
41. _________________ relationships are always optional relationships.
Recursive
MODIFY
Surrogate key
Testing functions
42. 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
Script
Logical unit of work
Self-joins
43. Explain what is found in the All Objects report folder in SQL Developer
DD-MON-YY
Any
RIGHT LEFT JOIN
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
44. The TRUNC function on a date without a format model truncates the timestamp to...
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Rounded edges
KEEP INDEX
12:00:00 A.M
45. Dynamic views begin with a ___________.
DECODE
Logical unit of work
V$
RUN SCRIPT
46. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
NATURAL JOIN
DICT_COLUMNS
VALUES
X
47. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Precision
Logical unit of work
Testing functions
Retrieve
48. Write a statement that drops the index need_to_pass_i
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.
DROP INDEX need_to_pass_i
Groups
The way NULL values are treated
49. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
FALSE
Equijoin and correlated subquery
SELECT DISTINCT menu FROM restaurant
12:00:00 A.M
50. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
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
X
SELECT SYSDATE+1/96 - FROM dual