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. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Actual column
Data
Combine
99.99
2. A calculation with a null always yields...
STORAGE
Equijoin
When the table is small (unless your business rules require you too)
Another null
3. The COUNT function is useful for determining whether a table has...
Export Data
ANSI
Data
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
4. The RTRIM function is useful for eliminating ________ in a string.
Surrogate key
Extra spaces
2000
Multiple rows
5. Checks whether any value in the list makes the condition true.
RIGHT LEFT JOIN
Any
MINUS
Re-create
6. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
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
4
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Recursive
7. Converting a text literal to DATE format requires the use of the...
VALUES
DICT_COLUMNS
TO_CHAR function
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
8. _________________ relationships are always optional relationships.
4000
Recursive
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.
**** 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
9. The same function can be used ______ in a SELECT statement.
Twice
Scale
Groups
STORAGE
10. __________________ inserts the current date and time.
SYSDATE
X
Testing functions
Logical unit of work
11. The _______ operator determines common rows.
999999.9999
INTERSECT
NATURAL JOIN
X
12. ____________ are useful for analyzing and exploring the relationships within your data
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
Run scripts
All
Self-joins
13. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
+
NATURAL JOIN
Equijoin and identical column names
UNION
14. 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
15. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Equijoin and correlated subquery
Any
DICT_COLUMNS
User-defined reports
16. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
KEEP INDEX
BETWEEN
Committed
Leading-edge
17. Dynamic views begin with a ___________.
DECODE
Surrogate key
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
V$
18. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
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.
Correlated
B-Tree Index
Month ddth - yyyy
19. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
All
ADD
2000
20. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Another null
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.
DROP INDEX need_to_pass_i
Optional
21. Write the syntax to rename index just_two_more_weeks_i to finally_i
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
RENAME just_two_more_weeks TO finally_i
Retrieve
Leading-edge
22. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
All caps
X
DESC dict;
Hide data
23. The __________ operator is inclusive of the two values specified.
BETWEEN
Columns
LENGTH
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
24. List the reasons that a subquery could not be unnested.
USER_ - ALL_ - DBA_ - and V$
DESC dict;
Command returns the number of records returned by a query.
X
25. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Mathematical equations
Equijoin
LENGTH
+
26. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Equijoin
Crow's foot
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Semicolon or forward slash
27. The using clause of the ANSI join syntax always assumes an...
ANSI
Parent table
IN ANY ALL SOME
Equijoin and identical column names
28. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
Command returns the number of records returned by a query.
Extra spaces
X
KEEP INDEX
29. The _____________ clause determines how rows are grouped.
GROUP BY
Actual column
A correct statement
COMMIT
30. The term ____________ ___________ is used to express a join that satisfies the join condition.
IN ANY ALL SOME
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.
INNER JOIN
VALUES
31. When column names on the tables are different - you use the ______ condition.
X
ON
B-Tree Index
RUN SCRIPT
32. What is the maximum value for a column defined as NUMBER(4 -2)?
Non-matching rows
99.99
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
999999.9999
33. Write a statement that drops the index need_to_pass_i
ALL_OBJECTS
Surrogate
DROP INDEX need_to_pass_i
Any
34. 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.
X
Non-matching rows
Command returns the number of records returned by a query.
VALUES
35. A transaction is a...
Logical unit of work
Committed
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.
DD-MON-YY
36. Which one of the following string functions tells you how many characters are in a string?
Semicolon or forward slash
Structured Query Language
X
LENGTH
37. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Columns
All caps
Implicit conversion
Precision
38. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
DROP INDEX need_to_pass_i
SET clause of an UPDATE statement
ROLLBACK
Same
39. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
USER_ - ALL_ - DBA_ - and V$
Logical unit of work
Script
COMMIT
40. Joins involving multiple columns must always follow the ____________ relationship path.
UNION
Leading-edge
@ or START
Primary key/foreign key
41. The ________ operator cannot compare against a list of values.
Another null
SYSDATE
The way NULL values are treated
LIKE
42. What is the tab in SQL Developer where data dictionary view information can be found?
Month ddth - yyyy
LIKE
Details
IN ANY ALL SOME
43. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Nested
Surrogate
STORAGE
SET clause of an UPDATE statement
44. Checks whether any value in the list makes the condition true.
Any
RUN SCRIPT
UTC
Same
45. Another name for a data dictionary view is __________________ or _________________.
VALUES clause of an INSERT statement
Static or dynamic
Null
Actual column
46. When is it not a good idea to use an index?
X
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.
DROP INDEX need_to_pass_i
When the table is small (unless your business rules require you too)
47. Which operator is most commonly used?
UNION
ANY
Rounded edges
Twice
48. How many characters can you have using the VARCHAR data type?
X
Surrogate
Both MIN and MAX
4000
49. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Export Data
Fractional seconds
12:00:00 A.M
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. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
BETWEEN
Rounded edges
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
DICT_COLUMNS