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. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
X
@ or START
**** 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
Static or dynamic
2. How many characters can be stored in the CHAR column/field?
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Results
RIGHT LEFT JOIN
2000
3. The __________ operator is inclusive of the two values specified.
Hide data
Twice
BETWEEN
Any
4. 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.
RUN SCRIPT
Correlated
Surrogate
Has not changed the name
5. _________ rows are not allowed in the relational model.
Orphan
INTERSECT
Parent table
Details
6. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
INTERSECT
2000
Recursive
7. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
Same
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
Any
8. When column names on the tables are different - you use the ______ condition.
V$
ON
The indexed column is part of an expression. In this case - consider creating a function-based index instead
COMMIT
9. Which one of the following string functions tells you how many characters are in a string?
LENGTH
Results
User-defined reports
Equijoin and identical column names
10. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
Month ddth - yyyy
Results
Recursive
11. 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
12. The _____________ clause determines how rows are grouped.
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.
GROUP BY
B-Tree Index
STORAGE
13. 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.
SYSDATE
Another null
ADD_MONTHS function
14. FEEDBACK
GROUP BY
LENGTH
Command returns the number of records returned by a query.
Results
15. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
F12
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
Orphan
16. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Leading-edge
Has not changed the name
DECODE
17. Oracle uses the outer join operator to indicate that nulls are shown for...
Any
Parent table
Three
Non-matching rows
18. The using clause of the ANSI join syntax always assumes an...
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
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Equijoin and identical column names
19. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
Self-joins
GROUP BY
Orphan
20. How many characters can you have using the VARCHAR data type?
Semicolon or forward slash
4000
UNION operator
999999.9999
21. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Parent table
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.
ROLLBACK
Correlated
22. List 4 aggregate functions
Another null
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Columns
VALUES clause of an INSERT statement
23. Checks whether any value in the list makes the condition true.
F12
Any
RENAME just_two_more_weeks TO finally_i
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
24. SELECT * FROM instructor ORDER BY phone
Parent table
FALSE
VALUES clause of an INSERT statement
A correct statement
25. What is the tab in SQL Developer where data dictionary view information can be found?
Details
Rounded edges
VALUES clause of an INSERT statement
The way NULL values are treated
26. 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?
@ or START
Precision
DICTIONARY
Running a script file
27. Explain how the SPOOL command is used and what program it can be used in.
The SPOOL command - together with a file name - spools any subsequently issued SQL Plus or SQL command to a file. Just as with other file names - you can add a path to store the file in a directory other than your SQL Plus default directory. SQL Deve
4
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Optional
28. The focus of the logical data model is _____________
LENGTH
Re-create
Common column value
Business problems
29. List the reasons that a subquery could not be unnested.
UTC
2000
X
Run scripts
30. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
4
Committed
Results
Equijoin
31. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Any
Surrogate key
BETWEEN
UTC
32. The _______ operator determines common rows.
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
INTERSECT
All
ANY
33. A _________ subquery returns a single column with a single row
Scalar
DICTIONARY
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.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
34. The term ____________ ___________ is used to express a join that satisfies the join condition.
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.
INNER JOIN
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.
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
35. SQL*Plus is used more than SQL Developer when you need to...
User-defined reports
DESC dict;
Run scripts
Orphan
36. Comparison operators can compare multiple _________________.
Columns
Details
ROLLBACK
Groups
37. Subqueries can return...
Groups
Both MIN and MAX
DECODE
Multiple rows
38. Explain how Substitution Variables are used when writing scripts.
INNER JOIN
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.
ON
12:00:00 A.M
39. NUMBER functions can be...
Nested
ON
X
Implicit conversion
40. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Columns
Correlated
UNION
Location of the file
41. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
DICTIONARY
INNER JOIN
Re-create
42. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
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
4
Committed
STORAGE
43. 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.
X
ADD
Business problems
FALSE
44. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Primary key/foreign key
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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Crow's foot
45. 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
Static or dynamic
F12
Time zone
46. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
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.
Non-matching rows
Equijoin and correlated subquery
47. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
DD-MON-YY
SELECT DISTINCT menu FROM restaurant
@ or START
48. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Scalar
Testing functions
Optional
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
49. When you have issued a DELETE command - you can still ________ those rows and restore the information.
ROLLBACK
ALL_OBJECTS
GROUP BY
Retrieve
50. 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.
F12
RIGHT LEFT JOIN
Combine
UNION