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. __________________ inserts the current date and time.
Groups
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.
SYSDATE
SELECT DISTINCT menu FROM restaurant
2. SELECT LIST of a subquery in an INSERT statement
Twice
Mathematical equations
Combine
SET clause of an UPDATE statement
3. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
BETWEEN
VALUES clause of an INSERT statement
DESC dict;
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.
4. Users can only see changes made to a database once they have been...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Committed
B-Tree Index
Structured Query Language
5. Explain in detail the impact of INDEXES and how they are used by Oracle.
COMMIT
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
VALUES clause of an INSERT statement
DICTIONARY
6. What is the main difference between the NOT EXISTS and the NOT IN operators?
Correlated
The way NULL values are treated
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Multiple rows
7. The ROWID pseudocolumn is not an ________- but it acts like one.
COMMIT
X
Actual column
2000
8. You can pass parameters from the operating system when ___________ in SQl*Plus
MINUS
SUM
Any
Running a script file
9. A _________ subquery returns a single column with a single row
Results
X
Scalar
Committed
10. The ______ operator compares a list of values for equivalency
DICT_COLUMNS
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ANY
Run scripts
11. 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
12. Checks whether any value in the list makes the condition true.
Primary key/foreign key
Any
IN ANY ALL SOME
Committed
13. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
Non-matching rows
Time zone
Month ddth - yyyy
4
14. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Crow's foot
Retrieve
ALL_OBJECTS
Optional
15. A calculation with a null always yields...
INNER JOIN
Any
Another null
BETWEEN
16. You use the __________ keyword to change characteristics of a column.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
UNION operator
Nested
MODIFY
17. ____________ are useful for analyzing and exploring the relationships within your data
Actual column
User-defined reports
Self-joins
Any
18. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
NATURAL JOIN
Surrogate
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Script
19. Write a statement that drops the index need_to_pass_i
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
Scalar
LENGTH
DROP INDEX need_to_pass_i
20. The _____________ clause determines how rows are grouped.
COMMIT
Default is 14; when you use the default - you repeat the heading every 14 rows.
Semicolon or forward slash
GROUP BY
21. When you run a script in SQL*Plus you must give the...
Location of the file
999999.9999
Null
**** 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
22. 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
23. Returns rows if the condition is true for all the values in the list
SELECT DISTINCT menu FROM restaurant
Export Data
All
Rounded edges
24. The ___________ operator tests whether a matching row cannot be found.
X
Combine
Location of the file
Primary key/foreign key
25. The ____________ command makes changes permanent.
Run scripts
COMMIT
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
Combine
26. List 4 aggregate functions
B-Tree Index
DROP INDEX need_to_pass_i
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Surrogate
27. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Black
Fractional seconds
Structured Query Language
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
28. List the steps performed by a 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
Data
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Any
29. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
Committed
Multiple rows
X
30. Subqueries can return...
ALL_OBJECTS
Data
RIGHT LEFT JOIN
Multiple rows
31. To restart a sequence at a lower number - you can drop and ________ the sequence.
DICTIONARY
GROUP BY
Re-create
Command returns the number of records returned by a query.
32. When column names on the tables are different - you use the ______ condition.
User-defined reports
X
ON
999999.9999
33. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Three
Business problems
Same
Results
34. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
IN ANY ALL SOME
B-Tree Index
X
35. LINESIZE
99.99
Actual column
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
MINUS
36. Explain how the SPOOL command is used and what program it can be used in.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Results
SET clause of an UPDATE statement
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
37. The _______ operator determines common rows.
TO_CHAR function
Columns
INTERSECT
V$
38. Comparison operators can compare multiple _________________.
99.99
Columns
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Logical unit of work
39. The focus of the logical data model is _____________
SYSDATE
Business problems
Columns
Crow's foot
40. Converting a text literal to DATE format requires the use of the...
Surrogate key
TO_CHAR function
Logical unit of work
Columns
41. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
4
X
Both MIN and MAX
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.
42. The term ____________ ___________ is used to express a join that satisfies the join condition.
ON
INNER JOIN
MODIFY
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
43. Explain how Substitution Variables are used when writing scripts.
Mathematical equations
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
Actual column
44. _________ rows are not allowed in the relational model.
DROP INDEX need_to_pass_i
ADD_MONTHS function
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.
Orphan
45. What are the main components of a ROWID?
MINUS
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.
ANSI
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.
46. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
UNION
CLOB
Primary key/foreign key
47. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
DICT_COLUMNS
IN ANY ALL SOME
MODIFY
48. Which one of the following string functions tells you how many characters are in a string?
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.
LENGTH
Has not changed the name
ROLLBACK
49. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
B-Tree Index
Script
VALUES
50. Checks whether any value in the list makes the condition true.
Has not changed the name
Any
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
X