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. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
STORAGE
Combine
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.
Export Data
2. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Business problems
Any
999999.9999
VALUES clause of an INSERT statement
3. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Self-joins
Scale
Precision
DROP INDEX need_to_pass_i
4. The ___________ operator tests whether a matching row cannot be found.
Combine
Run scripts
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
X
5. The __________ operator is inclusive of the two values specified.
BETWEEN
ANSI
Mathematical equations
ROLLBACK
6. The TRUNC function on a date without a format model truncates the timestamp to...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
RUN SCRIPT
NATURAL JOIN
12:00:00 A.M
7. The time zone displacement value indicates the time difference from _______.
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.
UTC
+
DICTIONARY
8. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
ANY
Same
Leading-edge
9. Oracle uses the outer join operator to indicate that nulls are shown for...
DESC dict;
Non-matching rows
Default is 14; when you use the default - you repeat the heading every 14 rows.
Orphan
10. Match each of the SQL commands on the left with a verb from the list.
Same
Logical unit of work
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
The way NULL values are treated
11. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
NATURAL JOIN
@ or START
Three
Command returns the number of records returned by a query.
12. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
All
DD-MON-YY
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
13. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
B-Tree Index
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.
+
14. The _______ function adds values together for a group of rows.
SUM
Parent table
Re-create
Inconsistencies
15. You can pass parameters from the operating system when ___________ in SQl*Plus
STORAGE
4000
Running a script file
Primary key/foreign key
16. Which format mask displays December 31st - 1999?
X
2000
USER_ - ALL_ - DBA_ - and V$
Month ddth - yyyy
17. What are the main components of a ROWID?
ON
UNION
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.
COMMIT
18. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
Scale
B-Tree Index
SUM
19. ____________ are useful for analyzing and exploring the relationships within your data
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Surrogate
Optional
Self-joins
20. 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
999999.9999
LENGTH
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.
21. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
When the table is small (unless your business rules require you too)
Multiple rows
BETWEEN
22. 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?
DICTIONARY
Correlated
RENAME just_two_more_weeks TO finally_i
UNION
23. To join four tables - you must have at least _____ join conditions.
Any
**** 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
Three
Business problems
24. You use the _________ keyword to add columns or constraints to a table.
ADD
SUM
Fractional seconds
Precision
25. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
Month ddth - yyyy
F12
Script
26. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Location of the file
Correlated
Equijoin
Primary key/foreign key
27. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
X
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Time zone
28. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
B-Tree Index
X
Scalar
ANY
29. The _______ operator determines common rows.
Optional
F12
INTERSECT
Asterisk
30. The _____________ clause determines how rows are grouped.
Static or dynamic
Another null
Results
GROUP BY
31. Another name for a data dictionary view is __________________ or _________________.
Inconsistencies
INTERSECT
SUM
Static or dynamic
32. _________________ relationships are always optional relationships.
Equijoin
VALUES clause of an INSERT statement
ROLLBACK
Recursive
33. Dynamic views begin with a ___________.
Has not changed the name
V$
UNION
SELECT SYSDATE+1/96 - FROM dual
34. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Columns
RUN SCRIPT
ALL_OBJECTS
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.
35. Which one of the following string functions tells you how many characters are in a string?
LENGTH
User-defined reports
UNION
Results
36. The _______ function lets you perform if-then-else functionality with the SQL language.
TO_CHAR function
DECODE
ROLLBACK
INNER JOIN
37. _________ rows are not allowed in the relational model.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Equijoin and identical column names
TO_CHAR function
Orphan
38. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Scale
Month ddth - yyyy
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Script
39. SQL*Plus is used more than SQL Developer when you need to...
Asterisk
SELECT DISTINCT menu FROM restaurant
Run scripts
Columns
40. The DUAL table can be used for...
X
Run scripts
Testing functions
Combine
41. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Precision
Semicolon or forward slash
KEEP INDEX
SYSDATE
42. 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
43. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
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
Has not changed the name
44. Users can only see changes made to a database once they have been...
Logical unit of work
UNION operator
Surrogate
Committed
45. The query retrieves more than 5 to 15 percent of the rows
Script
2000
The indexed column is part of an expression. In this case - consider creating a function-based index instead
All caps
46. The same function can be used ______ in a SELECT statement.
Twice
Mathematical equations
**** 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
LIKE
47. The ROWID pseudocolumn is not an ________- but it acts like one.
Non-matching rows
12:00:00 A.M
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
Actual column
48. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
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.
MINUS
DECODE
INTERSECT
49. What is the first column of a composite index called?
The way NULL values are treated
Leading-edge
MINUS
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
50. Explain what is found in the All Objects report folder in SQL Developer
Structured Query Language
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
The way NULL values are treated