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 the SPOOL command is used and what program it can be used in.
X
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
SUM
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
2. To restart a sequence at a lower number - you can drop and ________ the sequence.
Re-create
999999.9999
Equijoin and correlated subquery
Combine
3. Oracle uses the outer join operator to indicate that nulls are shown for...
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Non-matching rows
MODIFY
IN ANY ALL SOME
4. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
DICT_COLUMNS
Both MIN and MAX
Equijoin
RUN SCRIPT
5. 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
6. Users can only see changes made to a database once they have been...
Committed
ADD
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
Equijoin and identical column names
7. Explicit data type conversion is preferable to Oracle's...
ANSI
UNION operator
Surrogate key
Implicit conversion
8. Checks whether any value in the list makes the condition true.
@ or START
Any
The way NULL values are treated
Hide data
9. Explain what is found in the All Objects report folder in SQL Developer
Results
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Has not changed the name
COMMIT
10. Write a statement for SQL*Plus that shows the dictionary.
Hide data
Optional
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
DESC dict;
11. __________________ inserts the current date and time.
SYSDATE
12:00:00 A.M
BETWEEN
X
12. A _________ subquery returns a single column with a single row
User-defined reports
STORAGE
B-Tree Index
Scalar
13. In a view you can give a column a different name than it has in the...
Parent table
Static or dynamic
Primary key/foreign key
V$
14. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Twice
Committed
Same
Precision
15. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
Mathematical equations
Details
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.
16. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
BETWEEN
Multiple rows
IN ANY ALL SOME
17. What is the most common DATE format found in SQL?
VALUES
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
DD-MON-YY
The way NULL values are treated
18. 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
Nested
F12
@ or START
19. You can use the ________________ to subtract months from a given date.
ADD_MONTHS function
Surrogate
Columns
DROP INDEX need_to_pass_i
20. Write a solution that adds 20 minutes to a given date.
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.
SELECT SYSDATE+1/96 - FROM dual
Leading-edge
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
21. To join four tables - you must have at least _____ join conditions.
Three
BETWEEN
DD-MON-YY
Self-joins
22. What is Oracle's most popular index storage structure?
Three
Black
B-Tree Index
Self-joins
23. The purpose of the HAVING clause is to eliminate___________.
IN ANY ALL SOME
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
INNER JOIN
Groups
24. The DUAL table can be used for...
Committed
TO_CHAR function
Surrogate key
Testing functions
25. How many characters can be stored in the CHAR column/field?
DICT_COLUMNS
2000
ROLLBACK
LIKE
26. When column names on the tables are different - you use the ______ condition.
X
2000
ON
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
27. The __________ operator is inclusive of the two values specified.
Running a script file
99.99
BETWEEN
ALL_OBJECTS
28. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
Re-create
999999.9999
Semicolon or forward slash
29. The time zone displacement value indicates the time difference from _______.
UTC
4
Location of the file
MINUS
30. The _____________ clause determines how rows are grouped.
Equijoin and identical column names
Logical unit of work
GROUP BY
FALSE
31. The ___________ operator tests whether a matching row cannot be found.
DD-MON-YY
SUM
X
Re-create
32. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Equijoin and correlated subquery
Extra spaces
UTC
999999.9999
33. A transaction is a...
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.
All
Run scripts
Logical unit of work
34. Write a statement that drops the index need_to_pass_i
Testing functions
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
DROP INDEX need_to_pass_i
LIKE
35. You use the __________ keyword to change characteristics of a column.
VALUES
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
SYSDATE
MODIFY
36. In SQL Developer field names and table names are shown in the color _______.
Combine
X
Black
V$
37. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
DROP INDEX need_to_pass_i
SELECT DISTINCT menu FROM restaurant
NATURAL JOIN
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
38. List the reasons that a subquery could not be unnested.
Precision
All
X
All caps
39. List the steps performed by a correlated subquery.
INTERSECT
**** 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.
Month ddth - yyyy
40. 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.
VALUES
RUN SCRIPT
MODIFY
Committed
41. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
FALSE
Nested
Primary key/foreign key
42. To equijoin a table with another table involves matching the...
Common column value
Twice
UNION operator
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
43. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
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.
Equijoin
4000
BETWEEN
44. The ALTER SESSION statement can change the session's...
Time zone
Extra spaces
Nested
@ or START
45. Converting a text literal to DATE format requires the use of the...
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
TO_CHAR function
X
Another null
46. _________________ relationships are always optional relationships.
ROLLBACK
NATURAL JOIN
ON
Recursive
47. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Non-matching rows
Script
**** 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
RUN SCRIPT
48. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
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.
+
Parent table
Asterisk
49. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
SELECT DISTINCT menu FROM restaurant
+
DECODE
50. Checks whether any value in the list makes the condition true.
Twice
Any
Asterisk
ON