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 name of the key automatically generated from a sequence?
Surrogate key
RENAME just_two_more_weeks TO finally_i
A correct statement
All caps
2. In a view you can give a column a different name than it has in the...
DROP INDEX need_to_pass_i
Parent table
**** 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
Combine
3. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
All caps
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Semicolon or forward slash
Recursive
4. The ___________ operator tests whether a matching row cannot be found.
Actual column
Details
X
All
5. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
**** 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 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
Actual column
6. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Mathematical equations
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
ADD_MONTHS function
Null
7. When you run a script in SQL*Plus you must give the...
INTERSECT
Time zone
Location of the file
Run scripts
8. Subqueries can return...
Multiple rows
12:00:00 A.M
Three
A correct statement
9. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Primary key/foreign key
Rounded edges
CLOB
10. List the steps performed by a correlated subquery.
F12
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.
BETWEEN
**** 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
11. Checks whether any value in the list makes the condition true.
Any
Leading-edge
Rounded edges
Combine
12. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
@ or START
ALL_OBJECTS
Logical unit of work
SELECT DISTINCT menu FROM restaurant
13. You use the __________ keyword to change characteristics of a column.
Black
All
Scalar
MODIFY
14. Write a statement that drops the index need_to_pass_i
COMMIT
LENGTH
Structured Query Language
DROP INDEX need_to_pass_i
15. What is the first column of a composite index called?
4000
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.
Leading-edge
User-defined reports
16. SELECT * FROM instructor ORDER BY phone
Default is 14; when you use the default - you repeat the heading every 14 rows.
Another null
A correct statement
DD-MON-YY
17. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
Default is 14; when you use the default - you repeat the heading every 14 rows.
BETWEEN
Nested
18. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
ALL_OBJECTS
IN ANY ALL SOME
LIKE
19. 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
20. What are the main components of a ROWID?
999999.9999
Equijoin and identical column names
Fractional seconds
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.
21. The key that most database designers prefer and is chosen by the system is the _____________ key.
Data
The way NULL values are treated
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
Surrogate
22. When you have issued a DELETE command - you can still ________ those rows and restore the information.
The way NULL values are treated
LIKE
Retrieve
VALUES
23. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
CLOB
Equijoin and correlated subquery
+
ADD_MONTHS function
24. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Structured Query Language
Rounded edges
Fractional seconds
NATURAL JOIN
25. You use the _________ keyword to add columns or constraints to a table.
INTERSECT
Three
CLOB
ADD
26. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
ADD
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
F12
Leading-edge
27. _________ rows are not allowed in the relational model.
Surrogate key
Orphan
Static or dynamic
NATURAL JOIN
28. What is Oracle's most popular index storage structure?
B-Tree Index
Both MIN and MAX
Running a script file
SELECT SYSDATE+1/96 - FROM dual
29. It is considered good form to put all SQL commands in...
UNION operator
All caps
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.
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.
30. The RTRIM function is useful for eliminating ________ in a string.
RENAME just_two_more_weeks TO finally_i
Extra spaces
All
Any
31. Returns rows if the condition is true for all the values in the list
Optional
User-defined reports
BETWEEN
All
32. How many characters can be stored in the CHAR column/field?
SELECT SYSDATE+1/96 - FROM dual
2000
ANSI
Details
33. Comparison operators can compare multiple _________________.
KEEP INDEX
Columns
User-defined reports
Has not changed the name
34. The focus of the logical data model is _____________
Primary key/foreign key
Business problems
MINUS
4
35. List the reasons that a subquery could not be unnested.
Parent table
Groups
X
DICT_COLUMNS
36. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Recursive
VALUES
Fractional seconds
**** 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
37. The COUNT function uses the __________ wildcard.
Recursive
Time zone
Asterisk
Black
38. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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.
Fractional seconds
ALL_OBJECTS
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
39. Another name for a data dictionary view is __________________ or _________________.
MINUS
Static or dynamic
BETWEEN
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.
40. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Scalar
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
UNION operator
BETWEEN
41. The _______ function adds values together for a group of rows.
TO_CHAR function
MINUS
When the table is small (unless your business rules require you too)
SUM
42. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
Running a script file
Precision
RUN SCRIPT
43. To equijoin a table with another table involves matching the...
When the table is small (unless your business rules require you too)
Another null
SUM
Common column value
44. To join four tables - you must have at least _____ join conditions.
Inconsistencies
DECODE
Parent table
Three
45. A join across three tables can be expressed with the ________ join syntax.
When the table is small (unless your business rules require you too)
ANSI
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Hide data
46. What do views do that makes them so useful for security?
Hide data
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
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.
47. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
DICT_COLUMNS
RENAME just_two_more_weeks TO finally_i
Parent table
IN ANY ALL SOME
48. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
Results
V$
DESC dict;
49. To restart a sequence at a lower number - you can drop and ________ the sequence.
RENAME just_two_more_weeks TO finally_i
Re-create
DESC dict;
Committed
50. Which format mask displays December 31st - 1999?
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
Orphan
Semicolon or forward slash
Month ddth - yyyy