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 maximum value for a column defined as NUMBER(4 -2)?
Any
Primary key/foreign key
99.99
Black
2. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Null
X
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
FALSE
3. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Running a script file
ALL_OBJECTS
LENGTH
MINUS
4. The time zone displacement value indicates the time difference from _______.
Default is 14; when you use the default - you repeat the heading every 14 rows.
Parent table
Re-create
UTC
5. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
COMMIT
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.
DICT_COLUMNS
6. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
TO_CHAR function
USER_ - ALL_ - DBA_ - and V$
Asterisk
7. Which one of the following string functions tells you how many characters are in a string?
IN ANY ALL SOME
LENGTH
A correct statement
Groups
8. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Equijoin and correlated subquery
Parent table
STORAGE
DICTIONARY
9. What is the tab in SQL Developer where data dictionary view information can be found?
Columns
V$
Equijoin and identical column names
Details
10. List the steps performed by a correlated subquery.
Static or dynamic
ANY
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
**** 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
11. The query retrieves more than 5 to 15 percent of the rows
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Month ddth - yyyy
Black
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
12. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
UNION operator
FALSE
Equijoin
ROLLBACK
13. What is the most common DATE format found in SQL?
Both MIN and MAX
Running a script file
Semicolon or forward slash
DD-MON-YY
14. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
@ or START
SELECT DISTINCT menu FROM restaurant
The way NULL values are treated
X
15. The ALTER SESSION statement can change the session's...
RIGHT LEFT JOIN
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.
Time zone
Recursive
16. Write a statement for SQL*Plus that shows the dictionary.
Re-create
Black
User-defined reports
DESC dict;
17. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
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.
Same
Asterisk
A correct statement
18. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Hide data
Running a script file
NATURAL JOIN
Has not changed the name
19. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
GROUP BY
UTC
Results
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
20. Match each of the SQL commands on the left with a verb from the list.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
B-Tree Index
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Groups
21. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Script
12:00:00 A.M
Scale
Groups
22. The COUNT function uses the __________ wildcard.
Asterisk
FALSE
Orphan
Scale
23. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
DICT_COLUMNS
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Equijoin and identical column names
24. What is the data type you can use if you need an unlimited number of textual characters?
Scale
User-defined reports
99.99
CLOB
25. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
FALSE
All
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
BETWEEN
26. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
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.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Parent table
UTC
27. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Inconsistencies
Rounded edges
Extra spaces
When the table is small (unless your business rules require you too)
28. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Actual column
RIGHT LEFT JOIN
X
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 solution that adds 20 minutes to a given date.
SUM
Hide data
SELECT SYSDATE+1/96 - FROM dual
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.
30. How many characters can be stored in the CHAR column/field?
STORAGE
2000
Semicolon or forward slash
Inconsistencies
31. A transaction is a...
KEEP INDEX
Recursive
Month ddth - yyyy
Logical unit of work
32. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Actual column
Script
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.
When the table is small (unless your business rules require you too)
33. The using clause of the ANSI join syntax always assumes an...
IN ANY ALL SOME
Equijoin and identical column names
Default is 14; when you use the default - you repeat the heading every 14 rows.
Implicit conversion
34. Users can only see changes made to a database once they have been...
Committed
Month ddth - yyyy
DICTIONARY
99.99
35. The key that most database designers prefer and is chosen by the system is the _____________ key.
USER_ - ALL_ - DBA_ - and V$
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Command returns the number of records returned by a query.
Surrogate
36. You can use the ________________ to subtract months from a given date.
ADD_MONTHS function
Month ddth - yyyy
Re-create
Script
37. The ___________ operator tests whether a matching row cannot be found.
CLOB
X
Null
COMMIT
38. In a view you can give a column a different name than it has in the...
Rounded edges
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.
Self-joins
Parent table
39. The same function can be used ______ in a SELECT statement.
12:00:00 A.M
BETWEEN
Twice
Business problems
40. You can pass parameters from the operating system when ___________ in SQl*Plus
A correct 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
Running a script file
DROP INDEX need_to_pass_i
41. The ________ operator cannot compare against a list of values.
LIKE
Twice
4000
Location of the file
42. 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.
Any
Has not changed the name
Mathematical equations
SELECT DISTINCT menu FROM restaurant
43. When column names on the tables are different - you use the ______ condition.
ON
IN ANY ALL SOME
SUM
INNER JOIN
44. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
KEEP INDEX
ALL_OBJECTS
SET clause of an UPDATE statement
45. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Equijoin and correlated subquery
RUN SCRIPT
+
Leading-edge
46. The _______ operator determines common rows.
All caps
INTERSECT
4000
**** 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
47. 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
48. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
999999.9999
The indexed column is part of an expression. In this case - consider creating a function-based index instead
KEEP INDEX
Parent table
49. What is the main difference between the NOT EXISTS and the NOT IN operators?
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
SELECT DISTINCT menu FROM restaurant
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
50. Explain in detail the impact of INDEXES and how they are used by Oracle.
99.99
Nested
DICTIONARY
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