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. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Re-create
Null
@ or START
ADD
2. Write a statement that drops the index need_to_pass_i
Extra spaces
VALUES clause of an INSERT statement
ADD
DROP INDEX need_to_pass_i
3. 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
All caps
UTC
Self-joins
4. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
Nested
Scalar
VALUES clause of an INSERT statement
5. To restart a sequence at a lower number - you can drop and ________ the sequence.
Equijoin
2000
Re-create
Recursive
6. A join across three tables can be expressed with the ________ join syntax.
ANSI
SELECT DISTINCT menu FROM restaurant
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
Null
7. The DUAL table can be used for...
Static or dynamic
DESC dict;
Testing functions
Three
8. You use the __________ keyword to change characteristics of a column.
MODIFY
Details
Actual column
SUM
9. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
COMMIT
INNER JOIN
Precision
Logical unit of work
10. The query retrieves more than 5 to 15 percent of the rows
ADD
The indexed column is part of an expression. In this case - consider creating a function-based index instead
TO_CHAR function
+
11. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
GROUP BY
Implicit conversion
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
12. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
+
Semicolon or forward slash
Re-create
Equijoin
13. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
V$
VALUES clause of an INSERT statement
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Equijoin
14. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
USER_ - ALL_ - DBA_ - and V$
DICTIONARY
TO_CHAR function
RUN SCRIPT
15. What is the most common DATE format found in SQL?
Script
Precision
DD-MON-YY
LENGTH
16. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.
+
ANSI
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.
Has not changed the name
17. Converting a text literal to DATE format requires the use of the...
Leading-edge
Structured Query Language
ROLLBACK
TO_CHAR function
18. Which format mask displays December 31st - 1999?
F12
Month ddth - yyyy
All
Both MIN and MAX
19. You use the _________ keyword to add columns or constraints to a table.
Command returns the number of records returned by a query.
LIKE
ADD
Equijoin and correlated subquery
20. Explain how the SPOOL command is used and what program it can be used in.
USER_ - ALL_ - DBA_ - and V$
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
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
LENGTH
21. FEEDBACK
Command returns the number of records returned by a query.
DECODE
Precision
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
22. The _______ operator determines common rows.
INTERSECT
Equijoin and correlated subquery
Month ddth - yyyy
ANY
23. 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?
Another null
Location of the file
USER_ - ALL_ - DBA_ - and V$
DICTIONARY
24. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
MODIFY
X
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
Surrogate key
25. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
ADD
UNION
@ or START
Results
26. Another name for a data dictionary view is __________________ or _________________.
Twice
**** 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
Static or dynamic
LENGTH
27. __________________ inserts the current date and time.
Month ddth - yyyy
SYSDATE
KEEP INDEX
Common column value
28. In SQL Developer field names and table names are shown in the color _______.
Self-joins
DECODE
**** 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
Black
29. Which operator is most commonly used?
Structured Query Language
99.99
UNION
Surrogate
30. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Details
4000
Script
Orphan
31. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
X
Command returns the number of records returned by a query.
Correlated
FALSE
32. What is the keyboard shortcut for the ROLLBACK command?
BETWEEN
Fractional seconds
+
F12
33. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
VALUES
Correlated
CLOB
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.
34. Checks whether any value in the list makes the condition true.
Surrogate key
X
Any
Data
35. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Export Data
Null
LENGTH
Run scripts
36. Write a statement for SQL*Plus that shows the dictionary.
Extra spaces
Actual column
DESC dict;
RENAME just_two_more_weeks TO finally_i
37. NUMBER functions can be...
Non-matching rows
Nested
DICT_COLUMNS
Same
38. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
VALUES clause of an INSERT statement
UNION operator
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.
39. What is the maximum value for a column defined as NUMBER(4 -2)?
4
Another null
99.99
FALSE
40. Explain how Substitution Variables are used when writing scripts.
IN ANY ALL SOME
Crow's foot
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.
41. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
4
NATURAL JOIN
Has not changed the name
42. When is it not a good idea to use an index?
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.
When the table is small (unless your business rules require you too)
SELECT DISTINCT menu FROM restaurant
The indexed column is part of an expression. In this case - consider creating a function-based index instead
43. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
Details
COMMIT
Equijoin
44. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
IN ANY ALL SOME
RIGHT LEFT JOIN
SELECT DISTINCT menu FROM restaurant
V$
45. A _________ subquery returns a single column with a single row
B-Tree Index
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Details
Scalar
46. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Static or dynamic
Semicolon or forward slash
SYSDATE
Combine
47. What are the main components of a ROWID?
Leading-edge
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.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
IN ANY ALL SOME
48. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Precision
X
UNION
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
49. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
When the table is small (unless your business rules require you too)
Logical unit of work
Scale
Any
50. To join four tables - you must have at least _____ join conditions.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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
DD-MON-YY
Three