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. Write a statement that drops the index need_to_pass_i
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
IN ANY ALL SOME
DROP INDEX need_to_pass_i
X
2. What is the name of the key automatically generated from a sequence?
Surrogate key
DECODE
Location of the file
Null
3. 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.
LENGTH
Leading-edge
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.
Has not changed the name
4. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Time zone
VALUES
MODIFY
5. The using clause of the ANSI join syntax always assumes an...
4
Re-create
Equijoin and identical column names
12:00:00 A.M
6. The _______ function adds values together for a group of rows.
COMMIT
4
ALL_OBJECTS
SUM
7. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Scale
Mathematical equations
User-defined reports
The way NULL values are treated
9. ____________ are useful for analyzing and exploring the relationships within your data
GROUP BY
Export Data
Self-joins
RIGHT LEFT JOIN
10. The _______ operator determines common rows.
INTERSECT
V$
DESC dict;
ANY
11. What is the first column of a composite index called?
Leading-edge
TO_CHAR function
VALUES clause of an INSERT statement
Month ddth - yyyy
12. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
999999.9999
KEEP INDEX
Rounded edges
Self-joins
13. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
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.
COMMIT
ALL_OBJECTS
14. When column names on the tables are different - you use the ______ condition.
RUN SCRIPT
ON
999999.9999
F12
15. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
A correct statement
Results
B-Tree Index
COMMIT
16. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Precision
Structured Query Language
MINUS
Export Data
17. Write a statement for SQL*Plus that shows the dictionary.
Three
KEEP INDEX
DESC dict;
Any
18. How many characters can be stored in the CHAR column/field?
2000
Details
BETWEEN
KEEP INDEX
19. FEEDBACK
Re-create
NATURAL JOIN
FALSE
Command returns the number of records returned by a query.
20. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
Same
Hide data
Running a script file
21. The focus of the logical data model is _____________
DROP INDEX need_to_pass_i
Script
Business problems
Columns
22. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Any
RENAME just_two_more_weeks TO finally_i
Retrieve
Common column value
23. The time zone displacement value indicates the time difference from _______.
UTC
Month ddth - yyyy
Script
X
24. The ________ operator cannot compare against a list of values.
LIKE
LENGTH
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Re-create
25. List the steps performed by a correlated subquery.
TO_CHAR function
Asterisk
**** 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
Primary key/foreign key
26. In SQL Developer field names and table names are shown in the color _______.
Location of the file
V$
Committed
Black
27. Explain how the SPOOL command is used and what program it can be used in.
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
MINUS
Rounded edges
28. The ___________ operator tests whether a matching row cannot be found.
Mathematical equations
@ or START
X
VALUES
29. To join four tables - you must have at least _____ join conditions.
BETWEEN
Three
Equijoin
UTC
30. The ____________ command makes changes permanent.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Both MIN and MAX
KEEP INDEX
COMMIT
31. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
The indexed column is part of an expression. In this case - consider creating a function-based index instead
When the table is small (unless your business rules require you too)
X
USER_ - ALL_ - DBA_ - and V$
32. List the different types of data dictionary views.
VALUES
USER_ - ALL_ - DBA_ - and V$
The way NULL values are treated
Default is 14; when you use the default - you repeat the heading every 14 rows.
33. NUMBER functions can be...
Recursive
Nested
Structured Query Language
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
34. 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?
4000
Orphan
DICTIONARY
USER_ - ALL_ - DBA_ - and V$
35. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
X
SELECT DISTINCT menu FROM restaurant
BETWEEN
RIGHT LEFT JOIN
36. What is the maximum value for a column defined as NUMBER(4 -2)?
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
99.99
Export Data
Asterisk
37. You can use the ________________ to subtract months from a given date.
SELECT SYSDATE+1/96 - FROM dual
ADD_MONTHS function
UTC
VALUES clause of an INSERT statement
38. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
DICT_COLUMNS
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Same
Retrieve
39. In a view you can give a column a different name than it has in the...
Logical unit of work
The way NULL values are treated
X
Parent table
40. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Script
User-defined reports
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
TO_CHAR function
41. The _______ function lets you perform if-then-else functionality with the SQL language.
Leading-edge
Groups
+
DECODE
42. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Equijoin and identical column names
Leading-edge
Semicolon or forward slash
B-Tree Index
43. LINESIZE
SELECT SYSDATE+1/96 - FROM dual
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
X
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
44. Explain how Substitution Variables are used when writing scripts.
Data
Leading-edge
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.
Orphan
45. When you run a script in SQL*Plus you must give the...
Location of the file
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.
Scalar
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
46. What does SQL stand for?
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
Columns
LIKE
Structured Query Language
47. What is the keyboard shortcut for the ROLLBACK command?
12:00:00 A.M
When the table is small (unless your business rules require you too)
Running a script file
F12
48. Explain what is found in the All Objects report folder in SQL Developer
INTERSECT
RUN SCRIPT
F12
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
49. Users can only see changes made to a database once they have been...
ROLLBACK
Committed
Both MIN and MAX
KEEP INDEX
50. What are the main components of a ROWID?
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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.
Twice
ON