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 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
2. Explicit data type conversion is preferable to Oracle's...
USER_ - ALL_ - DBA_ - and V$
ROLLBACK
ANY
Implicit conversion
3. __________________ inserts the current date and time.
4000
SYSDATE
Has not changed the name
Default is 14; when you use the default - you repeat the heading every 14 rows.
4. How many characters can be stored in the CHAR column/field?
Leading-edge
2000
Asterisk
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
5. 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.
Semicolon or forward slash
Static or dynamic
RIGHT LEFT JOIN
STORAGE
6. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
4000
Results
Black
VALUES clause of an INSERT statement
7. The _______ function adds values together for a group of rows.
SUM
Nested
LENGTH
Any
8. The focus of the logical data model is _____________
Business problems
4000
DECODE
INNER JOIN
9. SQL*Plus is used more than SQL Developer when you need to...
Multiple rows
Inconsistencies
BETWEEN
Run scripts
10. The term ____________ ___________ is used to express a join that satisfies the join condition.
CLOB
INNER JOIN
Equijoin and identical column names
RENAME just_two_more_weeks TO finally_i
11. How many characters can you have using the VARCHAR data type?
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
4000
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Common column value
12. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
DICTIONARY
ROLLBACK
Both MIN and MAX
RUN SCRIPT
13. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
SELECT SYSDATE+1/96 - FROM dual
Recursive
Mathematical equations
14. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
The way NULL values are treated
Details
Black
15. The ___________ operator tests whether a matching row cannot be found.
USER_ - ALL_ - DBA_ - and V$
V$
X
Optional
16. To equijoin a table with another table involves matching the...
COMMIT
X
Extra spaces
Common column value
17. What do views do that makes them so useful for security?
Hide data
BETWEEN
User-defined reports
Structured Query Language
18. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
BETWEEN
Equijoin and identical column names
User-defined reports
19. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
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
999999.9999
SELECT DISTINCT menu FROM restaurant
TO_CHAR function
20. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
KEEP INDEX
Black
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.
+
21. List the steps performed by a correlated subquery.
Extra spaces
The indexed column is part of an expression. In this case - consider creating a function-based index instead
**** 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
Actual column
22. Explain how Substitution Variables are used when writing scripts.
4
X
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.
Rounded edges
23. In SQL Developer field names and table names are shown in the color _______.
12:00:00 A.M
Black
Data
DICT_COLUMNS
24. Explain in detail the impact of INDEXES and how they are used by Oracle.
Results
ROLLBACK
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
Committed
25. The query retrieves more than 5 to 15 percent of the rows
Precision
Has not changed the name
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Implicit conversion
26. Self-joins are useful for performing comparisons and checking for ___________ in data.
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.
Inconsistencies
VALUES
27. You can use the ________________ to subtract months from a given date.
IN ANY ALL SOME
Self-joins
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ADD_MONTHS function
28. You can __________ DISTINCT and a GROUP BY clause in the same SELECT 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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Combine
Recursive
29. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Hide data
FALSE
DESC dict;
@ or START
30. Which format mask displays December 31st - 1999?
Month ddth - yyyy
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
Running a script file
Correlated
31. What is the maximum value for a column defined as NUMBER(4 -2)?
Recursive
@ or START
User-defined reports
99.99
32. In a view you can give a column a different name than it has in the...
BETWEEN
4000
Parent table
SET clause of an UPDATE statement
33. 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.
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
VALUES
V$
GROUP BY
34. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
Orphan
Details
MINUS
35. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
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
Three
INNER JOIN
36. Explain how the SPOOL command is used and what program it can be used in.
Surrogate key
Running a script file
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
Inconsistencies
37. You use the _________ keyword to add columns or constraints to a table.
DD-MON-YY
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ADD
4
38. Explain what a static data dictionary view is and how it is used
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.
12:00:00 A.M
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Crow's foot
39. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Testing functions
VALUES clause of an INSERT statement
Export Data
ON
40. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Actual column
All
Mathematical equations
MINUS
41. When is it not a good idea to use an index?
A correct statement
When the table is small (unless your business rules require you too)
Time zone
Scalar
42. PAGESIZE
GROUP BY
Fractional seconds
Equijoin and correlated subquery
Default is 14; when you use the default - you repeat the heading every 14 rows.
43. 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?
LIKE
DD-MON-YY
+
DICTIONARY
44. What is the most common DATE format found in SQL?
SET clause of an UPDATE statement
The indexed column is part of an expression. In this case - consider creating a function-based index instead
DD-MON-YY
X
45. The using clause of the ANSI join syntax always assumes an...
Nested
Actual column
SELECT DISTINCT menu FROM restaurant
Equijoin and identical column names
46. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ALL_OBJECTS
Black
Location of the file
ROLLBACK
47. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
MODIFY
GROUP BY
Rounded edges
ANY
48. The _____________ clause determines how rows are grouped.
GROUP BY
RIGHT LEFT JOIN
X
12:00:00 A.M
49. Comparison operators can compare multiple _________________.
ANY
Columns
Multiple rows
SELECT DISTINCT menu FROM restaurant
50. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
User-defined reports
DECODE
DESC dict;