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 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.
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.
Any
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
2. Explain what is found in the All Objects report folder in SQL Developer
RUN SCRIPT
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Logical unit of work
UNION
3. You use the _________ keyword to add columns or constraints to a table.
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.
ADD
Another null
SYSDATE
4. The using clause of the ANSI join syntax always assumes an...
CLOB
Equijoin and identical column names
Recursive
99.99
5. Write a solution that adds 20 minutes to a given date.
X
V$
SELECT SYSDATE+1/96 - FROM dual
VALUES
6. List the reasons that a subquery could not be unnested.
ON
99.99
X
SET clause of an UPDATE statement
7. Users can only see changes made to a database once they have been...
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.
UNION
Committed
8. What is Oracle's most popular index storage structure?
RIGHT LEFT JOIN
All caps
SYSDATE
B-Tree Index
9. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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
Static or dynamic
Month ddth - yyyy
When the table is small (unless your business rules require you too)
10. The _______ function adds values together for a group of rows.
User-defined reports
UNION operator
SUM
FALSE
11. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Optional
Testing functions
Re-create
Surrogate
12. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
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
Any
INTERSECT
13. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
X
INTERSECT
X
VALUES clause of an INSERT statement
14. LINESIZE
Primary key/foreign key
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Structured Query Language
Scale
15. Dynamic views begin with a ___________.
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.
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
Three
V$
16. The query retrieves more than 5 to 15 percent of the rows
X
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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
17. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
SYSDATE
Equijoin
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.
USER_ - ALL_ - DBA_ - and V$
18. SELECT LIST of a subquery in an INSERT statement
ADD
SET clause of an UPDATE statement
Any
Combine
19. The focus of the logical data model is _____________
LENGTH
SET clause of an UPDATE statement
UNION operator
Business problems
20. Which one of the following string functions tells you how many characters are in a string?
X
UNION operator
RIGHT LEFT JOIN
LENGTH
21. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Semicolon or forward slash
Mathematical equations
12:00:00 A.M
Groups
22. SELECT * FROM instructor ORDER BY phone
A correct statement
CLOB
LIKE
+
23. When you run a script in SQL*Plus you must give the...
Same
Location of the file
Any
KEEP INDEX
24. What does SQL stand for?
Retrieve
Another null
Structured Query Language
Equijoin and identical column names
25. The ROWID pseudocolumn is not an ________- but it acts like one.
Extra spaces
Mathematical equations
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Actual column
26. _________ rows are not allowed in the relational model.
Leading-edge
MODIFY
UTC
Orphan
27. The _______ function lets you perform if-then-else functionality with the SQL language.
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.
RENAME just_two_more_weeks TO finally_i
DECODE
KEEP INDEX
28. Match each of the SQL commands on the left with a verb from the list.
MODIFY
UNION operator
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
29. Explain in detail the impact of INDEXES and how they are used by Oracle.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
SUM
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
User-defined reports
30. 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.
Has not changed the name
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
Data
Command returns the number of records returned by a query.
31. 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.
Testing functions
Nested
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.
FALSE
32. 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
33. You can use the ________________ to subtract months from a given date.
SELECT SYSDATE+1/96 - FROM dual
ADD_MONTHS function
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.
Semicolon or forward slash
34. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Surrogate
Export Data
BETWEEN
Precision
35. The ____________ command makes changes permanent.
Default is 14; when you use the default - you repeat the heading every 14 rows.
When the table is small (unless your business rules require you too)
COMMIT
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
36. _________________ relationships are always optional relationships.
Details
Inconsistencies
Recursive
ADD_MONTHS function
37. It is considered good form to put all SQL commands in...
Time zone
Mathematical equations
X
All caps
38. To restart a sequence at a lower number - you can drop and ________ the sequence.
Recursive
SUM
Re-create
Three
39. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
Non-matching rows
Any
Nested
40. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Running a script file
Retrieve
Fractional seconds
X
41. In SQL Developer field names and table names are shown in the color _______.
Month ddth - yyyy
ANSI
Black
Extra spaces
42. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
Rounded edges
ALL_OBJECTS
DESC dict;
43. List 6 Table-Related Menu Choices
Non-matching rows
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ALL_OBJECTS
44. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
Leading-edge
ANY
MODIFY
45. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
DECODE
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.
Semicolon or forward slash
GROUP BY
46. Self-joins are useful for performing comparisons and checking for ___________ in data.
Committed
Inconsistencies
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.
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
47. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
GROUP BY
Leading-edge
Script
Has not changed the name
48. Checks whether any value in the list makes the condition true.
Any
Correlated
Structured Query Language
Primary key/foreign key
49. How many characters can you have using the VARCHAR data type?
All caps
CLOB
LIKE
4000
50. What is the data type you can use if you need an unlimited number of textual characters?
Running a script file
Self-joins
Actual column
CLOB