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 the syntax to rename index just_two_more_weeks_i to finally_i
SELECT SYSDATE+1/96 - FROM dual
Export Data
V$
RENAME just_two_more_weeks TO finally_i
2. What does SQL stand for?
Structured Query Language
IN ANY ALL SOME
LIKE
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
3. List the steps performed by a correlated subquery.
ADD_MONTHS function
**** 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
SELECT DISTINCT menu FROM restaurant
Same
4. 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
RIGHT LEFT JOIN
Equijoin and identical column names
Default is 14; when you use the default - you repeat the heading every 14 rows.
5. You use the _________ keyword to add columns or constraints to a table.
DICT_COLUMNS
ADD
COMMIT
BETWEEN
6. The COUNT function uses the __________ wildcard.
RIGHT LEFT JOIN
Asterisk
ROLLBACK
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
7. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
LENGTH
Parent table
999999.9999
Equijoin
8. What is the tab in SQL Developer where data dictionary view information can be found?
Details
Location of the file
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Non-matching rows
9. The purpose of the HAVING clause is to eliminate___________.
Time zone
Has not changed the name
**** 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
Groups
10. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
Time zone
Primary key/foreign key
DESC dict;
11. To restart a sequence at a lower number - you can drop and ________ the sequence.
Three
When the table is small (unless your business rules require you too)
UNION operator
Re-create
12. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Running a script file
Script
VALUES clause of an INSERT statement
Default is 14; when you use the default - you repeat the heading every 14 rows.
13. The ____________ command makes changes permanent.
Asterisk
ADD_MONTHS function
Correlated
COMMIT
14. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
Script
Data
UNION
15. Subqueries can return...
Parent table
Extra spaces
Twice
Multiple rows
16. _________________ relationships are always optional relationships.
Running a script file
Results
INNER JOIN
Recursive
17. The ______ depicts the M of a 1:M relationship.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. You can use the ________________ to subtract months from a given date.
Groups
Correlated
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ADD_MONTHS function
19. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
Three
RIGHT LEFT JOIN
STORAGE
20. To join four tables - you must have at least _____ join conditions.
Three
Columns
A correct statement
UNION operator
21. What is the keyboard shortcut for the ROLLBACK command?
ON
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.
99.99
22. SELECT LIST of a subquery in an INSERT statement
Time zone
DICTIONARY
DECODE
SET clause of an UPDATE statement
23. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
DICT_COLUMNS
The indexed column is part of an expression. In this case - consider creating a function-based index instead
4000
Crow's foot
24. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Data
FALSE
Committed
RUN SCRIPT
25. 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?
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
DICTIONARY
NATURAL JOIN
Run scripts
26. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Surrogate key
ANSI
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.
Script
27. What is the maximum value for a column defined as NUMBER(4 -2)?
Committed
V$
99.99
Static or dynamic
28. List 4 aggregate functions
DESC dict;
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Scale
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
29. What is the name of the key automatically generated from a sequence?
COMMIT
Surrogate key
Parent table
Three
30. 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
31. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
CLOB
LIKE
ALL_OBJECTS
Any
32. The ROWID pseudocolumn is not an ________- but it acts like one.
When the table is small (unless your business rules require you too)
Three
Actual column
+
33. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Default is 14; when you use the default - you repeat the heading every 14 rows.
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
Export Data
Fractional seconds
34. 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
35. 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.
Three
Surrogate key
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
36. What is the data type you can use if you need an unlimited number of textual characters?
Results
CLOB
Implicit conversion
2000
37. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Equijoin
UTC
RIGHT LEFT JOIN
BETWEEN
38. UNION ALL does not sort - therefore it is less time consuming to use than the...
UNION operator
SYSDATE
Extra spaces
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
39. A join across three tables can be expressed with the ________ join syntax.
ANSI
Mathematical equations
ADD_MONTHS function
Any
40. _________ rows are not allowed in the relational model.
Mathematical equations
When the table is small (unless your business rules require you too)
Orphan
4
41. The _____________ clause determines how rows are grouped.
Business problems
GROUP BY
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
Logical unit of work
42. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Month ddth - yyyy
Groups
Mathematical equations
X
43. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Equijoin and correlated subquery
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
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.
V$
44. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
ALL_OBJECTS
Scalar
Inconsistencies
45. In SQL Developer field names and table names are shown in the color _______.
Precision
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Black
USER_ - ALL_ - DBA_ - and V$
46. What is the main difference between the NOT EXISTS and the NOT IN operators?
Script
The way NULL values are treated
4
When the table is small (unless your business rules require you too)
47. ____________ are useful for analyzing and exploring the relationships within your data
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.
Columns
Self-joins
Multiple rows
48. Another name for a data dictionary view is __________________ or _________________.
Re-create
Fractional seconds
Static or dynamic
COMMIT
49. When you run a script in SQL*Plus you must give the...
Location of the file
KEEP INDEX
Orphan
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
50. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Has not changed the name
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
BETWEEN
@ or START