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 data type you can use if you need an unlimited number of textual characters?
CLOB
99.99
INTERSECT
Data
2. Explain the steps needed to run a script in SQL Developer
Re-create
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.
Optional
3. 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
4. What do views do that makes them so useful for security?
12:00:00 A.M
Hide data
Testing functions
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 using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Hide data
Precision
RENAME just_two_more_weeks TO finally_i
USER_ - ALL_ - DBA_ - and V$
6. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Parent table
X
B-Tree Index
IN ANY ALL SOME
7. The ROWID pseudocolumn is not an ________- but it acts like one.
DESC dict;
Rounded edges
Actual column
Another null
8. 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
Crow's foot
INTERSECT
Extra spaces
9. LINESIZE
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
B-Tree Index
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
UNION operator
10. You use the _________ keyword to add columns or constraints to a table.
Scale
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Re-create
ADD
11. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Run scripts
Actual column
Twice
Export Data
12. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Command returns the number of records returned by a query.
4
Correlated
ALL_OBJECTS
13. Write a solution that adds 20 minutes to a given date.
Another null
B-Tree Index
12:00:00 A.M
SELECT SYSDATE+1/96 - FROM dual
14. What is the tab in SQL Developer where data dictionary view information can be found?
Details
Export Data
UNION operator
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
15. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Null
Recursive
16. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
UNION operator
ON
Another null
17. What does SQL stand for?
Structured Query Language
Details
Run scripts
Committed
18. Returns rows if the condition is true for all the values in the list
Three
Parent table
12:00:00 A.M
All
19. The query retrieves more than 5 to 15 percent of the rows
Results
ANSI
Optional
The indexed column is part of an expression. In this case - consider creating a function-based index instead
20. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
A correct statement
BETWEEN
INTERSECT
21. NUMBER functions can be...
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
KEEP INDEX
Any
Nested
22. In a view you can give a column a different name than it has in the...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Parent table
Implicit conversion
When the table is small (unless your business rules require you too)
23. 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
SUM
Inconsistencies
@ or START
24. The ALTER SESSION statement can change the session's...
Time zone
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.
ROLLBACK
RUN SCRIPT
25. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
Time zone
Actual column
Details
26. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
99.99
Nested
B-Tree Index
27. The ____________ command makes changes permanent.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
User-defined reports
COMMIT
All caps
28. When you run a script in SQL*Plus you must give the...
Location of the file
When the table is small (unless your business rules require you too)
RUN SCRIPT
BETWEEN
29. You use the __________ keyword to change characteristics of a column.
User-defined reports
SET clause of an UPDATE statement
MODIFY
Multiple rows
30. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
**** 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
User-defined reports
Command returns the number of records returned by a query.
Null
31. 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
32. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
ANY
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
Same
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
33. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
Fractional seconds
ANSI
INTERSECT
34. When you have issued a DELETE command - you can still ________ those rows and restore the information.
2000
Retrieve
Same
Fractional seconds
35. The DUAL table can be used for...
TO_CHAR function
Testing functions
Null
Both MIN and MAX
36. Oracle uses the outer join operator to indicate that nulls are shown for...
Re-create
SUM
Non-matching rows
Inconsistencies
37. Users can only see changes made to a database once they have been...
V$
Committed
Fractional seconds
Running a script file
38. The __________ operator is inclusive of the two values specified.
ALL_OBJECTS
Actual column
FALSE
BETWEEN
39. The focus of the logical data model is _____________
Correlated
Time zone
Fractional seconds
Business problems
40. FEEDBACK
Command returns the number of records returned by a query.
VALUES
Data
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.
41. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
@ or START
UNION
RENAME just_two_more_weeks TO finally_i
42. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
99.99
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Surrogate key
Three
43. In SQL Developer field names and table names are shown in the color _______.
Twice
Precision
Black
SELECT DISTINCT menu FROM restaurant
44. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
Extra spaces
Leading-edge
Location of the file
45. 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
46. The COUNT function is useful for determining whether a table has...
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.
Mathematical equations
Data
Common column value
47. SELECT LIST of a subquery in an INSERT statement
DICT_COLUMNS
2000
SET clause of an UPDATE statement
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.
48. Checks whether any value in the list makes the condition true.
Black
LIKE
Any
X
49. Self-joins are useful for performing comparisons and checking for ___________ in data.
Structured Query Language
All caps
ON
Inconsistencies
50. A _________ subquery returns a single column with a single row
Scalar
Committed
ON
Time zone