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 _______ function adds values together for a group of rows.
Common column value
Re-create
12:00:00 A.M
SUM
2. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Fractional seconds
B-Tree Index
RIGHT LEFT JOIN
Semicolon or forward slash
3. Subqueries can return...
ROLLBACK
Leading-edge
Multiple rows
+
4. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
2000
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.
FALSE
X
5. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
+
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.
Combine
INNER JOIN
6. What is the data type you can use if you need an unlimited number of textual characters?
Any
Equijoin
Primary key/foreign key
CLOB
7. A _________ subquery returns a single column with a single row
Month ddth - yyyy
Scalar
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.
X
8. 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
9. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
BETWEEN
MINUS
X
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
10. 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
Recursive
2000
RIGHT LEFT JOIN
11. What is the maximum value for a column defined as NUMBER(4 -2)?
INNER JOIN
Results
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
99.99
12. 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
13. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Hide data
Both MIN and MAX
Null
+
14. Another name for a data dictionary view is __________________ or _________________.
RUN SCRIPT
DROP INDEX need_to_pass_i
Static or dynamic
A correct statement
15. SQL*Plus is used more than SQL Developer when you need to...
UNION operator
NATURAL JOIN
Run scripts
Retrieve
16. Which format mask displays December 31st - 1999?
Month ddth - yyyy
2000
Structured Query Language
Crow's foot
17. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Rounded edges
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
Common column value
Crow's foot
18. A transaction is a...
Precision
Logical unit of work
INNER JOIN
SYSDATE
19. The _____________ clause determines how rows are grouped.
ANSI
GROUP BY
DECODE
Location of the file
20. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Fractional seconds
21. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
SELECT DISTINCT menu FROM restaurant
RIGHT LEFT JOIN
When the table is small (unless your business rules require you too)
Precision
22. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
Correlated
INNER JOIN
Running a script file
23. The DUAL table can be used for...
SYSDATE
Testing functions
KEEP INDEX
USER_ - ALL_ - DBA_ - and V$
24. __________________ inserts the current date and time.
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
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
ANY
SYSDATE
25. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Nested
DD-MON-YY
Run scripts
Equijoin and correlated subquery
26. List the reasons that a subquery could not be unnested.
X
Another null
KEEP INDEX
Details
27. UNION ALL does not sort - therefore it is less time consuming to use than the...
ROLLBACK
Both MIN and MAX
UNION operator
When the table is small (unless your business rules require you too)
28. 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.
Business problems
FALSE
Re-create
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.
29. Write a statement for SQL*Plus that shows the dictionary.
INNER JOIN
DESC dict;
RUN SCRIPT
Results
30. In SQL Developer field names and table names are shown in the color _______.
Black
Default is 14; when you use the default - you repeat the heading every 14 rows.
Business problems
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
31. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Semicolon or forward slash
GROUP BY
RUN SCRIPT
NATURAL JOIN
32. You can use the ________________ to subtract months from a given date.
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.
Static or dynamic
ADD_MONTHS function
Surrogate
33. A join across three tables can be expressed with the ________ join syntax.
ANSI
UNION
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
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
34. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Location of the file
BETWEEN
Fractional seconds
Recursive
35. The time zone displacement value indicates the time difference from _______.
UTC
Precision
LENGTH
V$
36. To restart a sequence at a lower number - you can drop and ________ the sequence.
Re-create
B-Tree Index
Any
Multiple rows
37. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Null
Another null
Testing functions
38. The __________ operator is inclusive of the two values specified.
ADD_MONTHS function
BETWEEN
Month ddth - yyyy
ROLLBACK
39. 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?
Recursive
SELECT SYSDATE+1/96 - FROM dual
DECODE
DICTIONARY
40. Explain what a static data dictionary view is and how it is used
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.
DD-MON-YY
Precision
NATURAL JOIN
41. 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.
STORAGE
Has not changed the name
The way NULL values are treated
42. Match each of the SQL commands on the left with a verb from the list.
Committed
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
UNION
RENAME just_two_more_weeks TO finally_i
43. In a view you can give a column a different name than it has in the...
999999.9999
ADD_MONTHS function
Parent table
Non-matching rows
44. PAGESIZE
VALUES
@ or START
NATURAL JOIN
Default is 14; when you use the default - you repeat the heading every 14 rows.
45. The key that most database designers prefer and is chosen by the system is the _____________ key.
VALUES clause of an INSERT statement
Optional
DESC dict;
Surrogate
46. Write a statement that drops the index need_to_pass_i
+
CLOB
Precision
DROP INDEX need_to_pass_i
47. Self-joins are useful for performing comparisons and checking for ___________ in data.
Groups
RIGHT LEFT JOIN
Orphan
Inconsistencies
48. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
UTC
999999.9999
MODIFY
RUN SCRIPT
49. NUMBER functions can be...
Run scripts
Scale
BETWEEN
Nested
50. The focus of the logical data model is _____________
Business problems
LIKE
Month ddth - yyyy
DICT_COLUMNS