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. What is the name of the key automatically generated from a sequence?
ALL_OBJECTS
Surrogate key
Black
SYSDATE
2. What do views do that makes them so useful for security?
X
Default is 14; when you use the default - you repeat the heading every 14 rows.
Hide data
Run scripts
3. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Null
Static or dynamic
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.
Export Data
4. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Same
Results
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
Self-joins
5. Explain what is found in the All Objects report folder in SQL Developer
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
All
STORAGE
12:00:00 A.M
6. It is considered good form to put all SQL commands in...
Three
All caps
Semicolon or forward slash
F12
7. The __________ operator is inclusive of the two values specified.
NATURAL JOIN
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
When the table is small (unless your business rules require you too)
BETWEEN
8. The ________ operator cannot compare against a list of values.
GROUP BY
Results
Re-create
LIKE
9. The _______ operator determines common rows.
SYSDATE
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
Data
INTERSECT
10. The using clause of the ANSI join syntax always assumes an...
Surrogate
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.
Equijoin and identical column names
2000
11. What does SQL stand for?
VALUES
Structured Query Language
LIKE
USER_ - ALL_ - DBA_ - and V$
12. When column names on the tables are different - you use the ______ condition.
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.
Has not changed the name
ON
Inconsistencies
13. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
DROP INDEX need_to_pass_i
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
+
KEEP INDEX
14. The _______ function adds values together for a group of rows.
BETWEEN
A correct statement
Mathematical equations
SUM
15. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Common column value
Crow's foot
Rounded edges
KEEP INDEX
16. The ___________ operator tests whether a matching row cannot be found.
Has not changed the name
X
BETWEEN
999999.9999
17. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
STORAGE
99.99
Scale
V$
18. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Semicolon or forward slash
X
Optional
Export Data
19. What is the maximum value for a column defined as NUMBER(4 -2)?
MINUS
Optional
LIKE
99.99
20. __________________ inserts the current date and time.
NATURAL JOIN
SYSDATE
Default is 14; when you use the default - you repeat the heading every 14 rows.
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
21. Queries that are found in parentheses are done first - just as in the order of operations when doing...
SELECT DISTINCT menu FROM restaurant
Mathematical equations
UNION operator
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
22. What is the keyboard shortcut for the ROLLBACK command?
Details
Retrieve
F12
Combine
23. PAGESIZE
2000
Default is 14; when you use the default - you repeat the heading every 14 rows.
Running a script file
ADD
24. Write a statement that drops the index need_to_pass_i
User-defined reports
Precision
DROP INDEX need_to_pass_i
V$
25. How many characters can be stored in the CHAR column/field?
X
Data
2000
Correlated
26. The ____________ command makes changes permanent.
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.
Month ddth - yyyy
COMMIT
Self-joins
27. Which operator is most commonly used?
SELECT SYSDATE+1/96 - FROM dual
UNION
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Script
28. Write the syntax to rename index just_two_more_weeks_i to finally_i
Mathematical equations
RENAME just_two_more_weeks TO finally_i
DD-MON-YY
LENGTH
29. 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
30. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
ALL_OBJECTS
SUM
Equijoin
Testing functions
31. _________ rows are not allowed in the relational model.
Orphan
Equijoin
Primary key/foreign key
B-Tree Index
32. You use the __________ keyword to change characteristics of a column.
MODIFY
Static or dynamic
SELECT SYSDATE+1/96 - FROM dual
SET clause of an UPDATE statement
33. A _________ subquery returns a single column with a single row
Logical unit of work
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.
The way NULL values are treated
Scalar
34. In SQL Developer field names and table names are shown in the color _______.
Retrieve
Black
SUM
Fractional seconds
35. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Equijoin and correlated subquery
Asterisk
V$
FALSE
36. Subqueries can return...
Combine
Multiple rows
All caps
BETWEEN
37. What is the data type you can use if you need an unlimited number of textual characters?
ALL_OBJECTS
Nested
Retrieve
CLOB
38. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
GROUP BY
STORAGE
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
SELECT SYSDATE+1/96 - FROM dual
39. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Surrogate
LIKE
Semicolon or forward slash
IN ANY ALL SOME
40. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.
RIGHT LEFT JOIN
@ or START
Has not changed the name
INNER JOIN
41. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Location of the file
Combine
NATURAL JOIN
Orphan
42. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
DESC dict;
Script
Command returns the number of records returned by a query.
Any
43. Explain in detail the impact of INDEXES and how they are used by Oracle.
Surrogate key
SELECT SYSDATE+1/96 - FROM dual
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
B-Tree Index
44. 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.
**** 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
DESC dict;
CLOB
45. Joins involving multiple columns must always follow the ____________ relationship path.
Any
Hide data
Data
Primary key/foreign key
46. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Mathematical equations
Implicit conversion
The way NULL values are treated
MINUS
47. UNION ALL does not sort - therefore it is less time consuming to use than the...
USER_ - ALL_ - DBA_ - and V$
UNION operator
FALSE
Optional
48. Write a solution that adds 20 minutes to a given date.
Columns
Common column value
DICTIONARY
SELECT SYSDATE+1/96 - FROM dual
49. Which format mask displays December 31st - 1999?
LENGTH
ON
Month ddth - yyyy
4
50. What is Oracle's most popular index storage structure?
The indexed column is part of an expression. In this case - consider creating a function-based index instead
+
BETWEEN
B-Tree Index