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. List the steps performed by a correlated subquery.
Logical unit of work
Equijoin and correlated subquery
**** 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
CLOB
2. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
NATURAL JOIN
Optional
RUN SCRIPT
FALSE
3. 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
4. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Command returns the number of records returned by a query.
Semicolon or forward slash
Precision
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
5. What do views do that makes them so useful for security?
Actual column
Hide data
COMMIT
Structured Query Language
6. The COUNT function uses the __________ wildcard.
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
Implicit conversion
Asterisk
LENGTH
7. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Another null
Results
KEEP INDEX
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
8. List 6 Table-Related Menu Choices
Data
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
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
MINUS
9. Explain what a static data dictionary view is and how it is used
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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.
Correlated
Surrogate
10. The ______ operator compares a list of values for equivalency
The indexed column is part of an expression. In this case - consider creating a function-based index instead
ANY
2000
DICTIONARY
11. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
LENGTH
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
STORAGE
Both MIN and MAX
12. Returns rows if the condition is true for all the values in the list
Implicit conversion
Location of the file
All
ROLLBACK
13. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
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
Same
Recursive
LENGTH
14. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
**** 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
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
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
15. To equijoin a table with another table involves matching the...
LIKE
Structured Query Language
RENAME just_two_more_weeks TO finally_i
Common column value
16. FEEDBACK
Command returns the number of records returned by a query.
RIGHT LEFT JOIN
Combine
Correlated
17. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
IN ANY ALL SOME
Parent table
All
18. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
STORAGE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Combine
Fractional seconds
19. Queries that are found in parentheses are done first - just as in the order of operations when doing...
V$
All caps
Mathematical equations
Static or dynamic
20. It is considered good form to put all SQL commands in...
Groups
99.99
All caps
Combine
21. Which operator is most commonly used?
12:00:00 A.M
Groups
UNION
NATURAL JOIN
22. In SQL Developer field names and table names are shown in the color _______.
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
Hide data
Black
DD-MON-YY
23. 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.
FALSE
Export Data
4
MINUS
24. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
Export Data
ROLLBACK
SELECT DISTINCT menu FROM restaurant
25. The DUAL table can be used for...
Any
BETWEEN
X
Testing functions
26. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Leading-edge
Command returns the number of records returned by a query.
DECODE
999999.9999
27. Dynamic views begin with a ___________.
Orphan
99.99
V$
Re-create
28. SQL*Plus is used more than SQL Developer when you need to...
USER_ - ALL_ - DBA_ - and V$
VALUES clause of an INSERT statement
Scalar
Run scripts
29. Write a statement that drops the index need_to_pass_i
Rounded edges
DROP INDEX need_to_pass_i
Business problems
Fractional seconds
30. The using clause of the ANSI join syntax always assumes an...
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
STORAGE
Equijoin and identical column names
Has not changed the name
31. In a view you can give a column a different name than it has in the...
Parent table
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
12:00:00 A.M
32. The focus of the logical data model is _____________
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Any
DECODE
Business problems
33. You can pass parameters from the operating system when ___________ in SQl*Plus
ALL_OBJECTS
Running a script file
Default is 14; when you use the default - you repeat the heading every 14 rows.
Actual column
34. 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.
FALSE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Groups
35. When you run a script in SQL*Plus you must give the...
Logical unit of work
UNION
Location of the file
VALUES
36. What are the main components of a ROWID?
Three
ANSI
USER_ - ALL_ - DBA_ - and V$
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.
37. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Both MIN and MAX
RIGHT LEFT JOIN
99.99
Structured Query Language
38. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Running a script file
Rounded edges
FALSE
SELECT DISTINCT menu FROM restaurant
39. The TRUNC function on a date without a format model truncates the timestamp to...
Primary key/foreign key
4
Twice
12:00:00 A.M
40. _________ rows are not allowed in the relational model.
Combine
Orphan
Equijoin
Self-joins
41. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
Surrogate
RIGHT LEFT JOIN
X
RUN SCRIPT
42. What is the name of the key automatically generated from a sequence?
Surrogate key
**** 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$
IN ANY ALL SOME
43. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
Combine
Self-joins
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
44. The same function can be used ______ in a SELECT statement.
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
Leading-edge
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Twice
45. What is the first column of a composite index called?
Leading-edge
999999.9999
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
Non-matching rows
46. Subqueries can return...
Multiple rows
DECODE
RIGHT LEFT JOIN
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
47. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Same
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.
NATURAL JOIN
DROP INDEX need_to_pass_i
48. Checks whether any value in the list makes the condition true.
SELECT SYSDATE+1/96 - FROM dual
Any
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
All caps
49. Which format mask displays December 31st - 1999?
Same
X
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Month ddth - yyyy
50. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
SYSDATE
999999.9999
DICT_COLUMNS
MODIFY