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. The using clause of the ANSI join syntax always assumes an...
X
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
2000
Equijoin and identical column names
2. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
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
999999.9999
SELECT DISTINCT menu FROM restaurant
X
3. Explain the steps needed to run a script in SQL Developer
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.
DROP INDEX need_to_pass_i
Correlated
ADD_MONTHS function
4. A transaction is a...
Logical unit of work
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
ANSI
Groups
5. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Mathematical equations
The way NULL values are treated
VALUES clause of an INSERT statement
Structured Query Language
6. What is the most common DATE format found in SQL?
DD-MON-YY
+
SYSDATE
X
7. List the reasons that a subquery could not be unnested.
NATURAL JOIN
UTC
X
Correlated
8. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
RIGHT LEFT JOIN
Semicolon or forward slash
STORAGE
9. The DUAL table can be used for...
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.
Combine
Testing functions
User-defined reports
10. In SQL Developer field names and table names are shown in the color _______.
Static or dynamic
Black
SELECT DISTINCT menu FROM restaurant
Retrieve
11. A join across three tables can be expressed with the ________ join syntax.
MODIFY
ANSI
A correct statement
Default is 14; when you use the default - you repeat the heading every 14 rows.
12. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Results
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
X
Non-matching rows
13. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
99.99
@ or START
Details
Crow's foot
14. Comparison operators can compare multiple _________________.
Data
Re-create
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
Columns
15. PAGESIZE
+
MODIFY
B-Tree Index
Default is 14; when you use the default - you repeat the heading every 14 rows.
16. Dynamic views begin with a ___________.
X
**** 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
V$
Equijoin and correlated subquery
17. The key that most database designers prefer and is chosen by the system is the _____________ key.
ROLLBACK
VALUES
Surrogate
Same
18. What is the keyboard shortcut for the ROLLBACK command?
CLOB
F12
LENGTH
Export Data
19. It is considered good form to put all SQL commands in...
SELECT DISTINCT menu FROM restaurant
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.
Primary key/foreign key
All caps
20. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
Actual column
X
ADD
21. UNION ALL does not sort - therefore it is less time consuming to use than the...
DECODE
UNION operator
ADD_MONTHS function
ROLLBACK
22. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
Correlated
BETWEEN
Logical unit of work
23. What is the first column of a composite index called?
Groups
All
VALUES clause of an INSERT statement
Leading-edge
24. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
X
All caps
Surrogate
25. What is the tab in SQL Developer where data dictionary view information can be found?
Any
Details
Extra spaces
Implicit conversion
26. How many characters can be stored in the CHAR column/field?
Extra spaces
LIKE
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
2000
27. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
Both MIN and MAX
RENAME just_two_more_weeks TO finally_i
Three
28. What are the main components of a ROWID?
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.
INTERSECT
When the table is small (unless your business rules require you too)
FALSE
29. The __________ operator is inclusive of the two values specified.
Static or dynamic
BETWEEN
DECODE
Black
30. How many characters can you have using the VARCHAR data type?
RUN SCRIPT
4000
Surrogate key
FALSE
31. 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?
Twice
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.
Running a script file
DICTIONARY
32. What is the data type you can use if you need an unlimited number of textual characters?
VALUES
CLOB
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
IN ANY ALL SOME
33. You use the __________ keyword to change characteristics of a column.
All
X
2000
MODIFY
34. The time zone displacement value indicates the time difference from _______.
STORAGE
BETWEEN
Location of the file
UTC
35. To join four tables - you must have at least _____ join conditions.
Correlated
Business problems
Testing functions
Three
36. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
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.
**** 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
Results
Fractional seconds
37. 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.
Re-create
Primary key/foreign key
ALL_OBJECTS
FALSE
38. List 4 aggregate functions
A correct statement
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
SELECT DISTINCT menu FROM restaurant
SYSDATE
39. To restart a sequence at a lower number - you can drop and ________ the sequence.
Committed
Re-create
Parent table
BETWEEN
40. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Semicolon or forward slash
Rounded edges
Has not changed the name
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
41. Converting a text literal to DATE format requires the use of the...
LIKE
Groups
VALUES
TO_CHAR function
42. The same function can be used ______ in a SELECT statement.
MINUS
NATURAL JOIN
Twice
Scale
43. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
BETWEEN
Another null
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
44. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
Testing functions
2000
ADD
45. What does the following function return? SELECT LENGTH(NULL) - FROM dual
USER_ - ALL_ - DBA_ - and V$
FALSE
RENAME just_two_more_weeks TO finally_i
Null
46. Another name for a data dictionary view is __________________ or _________________.
Hide data
Static or dynamic
12:00:00 A.M
Running a script file
47. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
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
12:00:00 A.M
Testing functions
Results
48. Explain what a static data dictionary view is and how it is used
Both MIN and MAX
RUN SCRIPT
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.
INNER JOIN
49. What is Oracle's most popular index storage structure?
Structured Query Language
Multiple rows
Correlated
B-Tree Index
50. SELECT * FROM instructor ORDER BY phone
SUM
Structured Query Language
MINUS
A correct statement