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. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Twice
Non-matching rows
Equijoin and correlated subquery
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.
2. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
SET clause of an UPDATE statement
INTERSECT
STORAGE
DECODE
3. You use the _________ keyword to add columns or constraints to a table.
LENGTH
SELECT DISTINCT menu FROM restaurant
Precision
ADD
4. The term ____________ ___________ is used to express a join that satisfies the join condition.
VALUES clause of an INSERT statement
INNER JOIN
A correct statement
X
5. The COUNT function is useful for determining whether a table has...
Columns
Orphan
ADD
Data
6. What is Oracle's most popular index storage structure?
B-Tree Index
Common column value
999999.9999
SELECT SYSDATE+1/96 - FROM dual
7. The same function can be used ______ in a SELECT statement.
Month ddth - yyyy
DROP INDEX need_to_pass_i
Twice
LENGTH
8. Explain how Substitution Variables are used when writing scripts.
Optional
Precision
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.
VALUES clause of an INSERT statement
9. What is the syntax used to indicate that you are using the Oracle Outer Join 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
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
COMMIT
+
10. Write the syntax to rename index just_two_more_weeks_i to finally_i
MINUS
RENAME just_two_more_weeks TO finally_i
Groups
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
11. _________ rows are not allowed in the relational model.
Orphan
Run scripts
X
Combine
12. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Has not changed the name
X
2000
Script
13. The ___________ operator tests whether a matching row cannot be found.
Inconsistencies
X
Logical unit of work
USER_ - ALL_ - DBA_ - and V$
14. The query retrieves more than 5 to 15 percent of the rows
UNION operator
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Command returns the number of records returned by a query.
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.
15. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
User-defined reports
VALUES clause of an INSERT statement
999999.9999
Inconsistencies
16. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
ON
NATURAL JOIN
Command returns the number of records returned by a query.
17. 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.
FALSE
F12
MODIFY
999999.9999
18. To join four tables - you must have at least _____ join conditions.
MINUS
Null
UTC
Three
19. The __________ operator is inclusive of the two values specified.
VALUES
BETWEEN
Columns
2000
20. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
ADD_MONTHS function
Month ddth - yyyy
Results
STORAGE
21. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Script
Crow's foot
TO_CHAR function
@ or START
22. Explain what is found in the All Objects report folder in SQL Developer
Equijoin and correlated subquery
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Mathematical equations
FALSE
23. Dynamic views begin with a ___________.
Results
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.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
V$
24. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
Script
SELECT DISTINCT menu FROM restaurant
X
25. The ______ depicts the M of a 1:M relationship.
26. Which format mask displays December 31st - 1999?
Month ddth - yyyy
Any
RENAME just_two_more_weeks TO finally_i
Surrogate key
27. The DUAL table can be used for...
KEEP INDEX
Testing functions
Optional
Run scripts
28. The ________ operator cannot compare against a list of values.
DICTIONARY
Parent table
LIKE
BETWEEN
29. Explain in detail the impact of INDEXES and how they are used by Oracle.
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.
Re-create
**** 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
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
30. Queries that are found in parentheses are done first - just as in the order of operations when doing...
DICT_COLUMNS
999999.9999
MINUS
Mathematical equations
31. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
ANSI
Nested
Semicolon or forward slash
Surrogate key
32. Joins involving multiple columns must always follow the ____________ relationship path.
FALSE
Asterisk
Parent table
Primary key/foreign key
33. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Any
MINUS
Running a script file
Actual column
34. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
LIKE
Groups
IN ANY ALL SOME
35. In SQL Developer field names and table names are shown in the color _______.
Black
SUM
UNION operator
Mathematical equations
36. List the steps performed by a correlated subquery.
USER_ - ALL_ - DBA_ - and V$
Common column value
**** 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 way NULL values are treated
37. The key that most database designers prefer and is chosen by the system is the _____________ key.
Surrogate
IN ANY ALL SOME
DICT_COLUMNS
STORAGE
38. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
LENGTH
A correct statement
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.
39. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Command returns the number of records returned by a query.
Run scripts
X
Structured Query Language
40. Match each of the SQL commands on the left with a verb from the list.
UNION operator
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
FALSE
CLOB
41. The _______ operator determines common rows.
INTERSECT
Scale
Implicit conversion
Inconsistencies
42. List 6 Table-Related Menu Choices
Extra spaces
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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
43. What are the main components of a ROWID?
Rounded edges
F12
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.
Any
44. __________________ inserts the current date and time.
SYSDATE
Nested
4000
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
45. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
COMMIT
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Null
RUN SCRIPT
46. Write a statement that drops the index need_to_pass_i
DICT_COLUMNS
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
Leading-edge
DROP INDEX need_to_pass_i
47. Explain how the SPOOL command is used and what program it can be used in.
**** 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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Location of the file
48. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Has not changed the name
DECODE
Scale
DROP INDEX need_to_pass_i
49. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Groups
Surrogate
DESC dict;
Null
50. When column names on the tables are different - you use the ______ condition.
ON
Multiple rows
MODIFY
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.