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. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
DICTIONARY
Optional
Month ddth - yyyy
Null
2. In a view you can give a column a different name than it has in the...
Data
Inconsistencies
Parent table
Combine
3. The _______ function lets you perform if-then-else functionality with the SQL language.
Has not changed the name
DECODE
Static or dynamic
Surrogate key
4. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
ADD_MONTHS function
Hide data
Business problems
5. 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
6. The DUAL table can be used for...
Groups
ADD_MONTHS function
Testing functions
SYSDATE
7. 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.
FALSE
INTERSECT
Correlated
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
8. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
Surrogate
ADD
Orphan
9. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Business problems
STORAGE
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Logical unit of work
10. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
UTC
SELECT DISTINCT menu FROM restaurant
Surrogate key
Export Data
11. What does the following function return? SELECT LENGTH(NULL) - FROM dual
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.
Time zone
Black
Null
12. SQL*Plus is used more than SQL Developer when you need to...
Retrieve
99.99
ANY
Run scripts
13. Write a statement that drops the index need_to_pass_i
Null
DROP INDEX need_to_pass_i
Surrogate key
SET clause of an UPDATE statement
14. What does SQL stand for?
All
RENAME just_two_more_weeks TO finally_i
Structured Query Language
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
15. Subqueries can return...
DROP INDEX need_to_pass_i
Multiple rows
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.
Surrogate
16. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
RUN SCRIPT
Scalar
Export Data
Run scripts
17. The _______ function adds values together for a group of rows.
SUM
99.99
Columns
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.
18. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
DESC dict;
Re-create
ALL_OBJECTS
19. A transaction is a...
Logical unit of work
Location of the file
ROLLBACK
Any
20. Explain how the SPOOL command is used and what program it can be used in.
Results
BETWEEN
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
Scale
21. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
4
Extra spaces
ON
22. List the different types of data dictionary views.
Another null
Same
BETWEEN
USER_ - ALL_ - DBA_ - and V$
23. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
DICTIONARY
Any
ADD
24. The focus of the logical data model is _____________
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
Precision
4
Business problems
25. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
When the table is small (unless your business rules require you too)
DESC dict;
999999.9999
Retrieve
26. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
Script
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
VALUES
Primary key/foreign key
27. 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.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Crow's foot
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
28. A _________ subquery returns a single column with a single row
A correct statement
Location of the file
Data
Scalar
29. A join across three tables can be expressed with the ________ join syntax.
ANSI
V$
Orphan
**** 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
30. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
Nested
INTERSECT
VALUES
31. Which operator is most commonly used?
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
UNION
Non-matching rows
+
32. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
KEEP INDEX
Structured Query Language
DROP INDEX need_to_pass_i
33. The ___________ operator tests whether a matching row cannot be found.
UNION operator
X
KEEP INDEX
Equijoin
34. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
UNION operator
Semicolon or forward slash
Both MIN and MAX
Non-matching rows
35. Joins involving multiple columns must always follow the ____________ relationship path.
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
Primary key/foreign key
MODIFY
DICT_COLUMNS
36. The ________ operator cannot compare against a list of values.
VALUES
Semicolon or forward slash
LIKE
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
37. The _____________ clause determines how rows are grouped.
IN ANY ALL SOME
User-defined reports
Scalar
GROUP BY
38. How many characters can be stored in the CHAR column/field?
Testing functions
2000
Retrieve
Black
39. __________________ inserts the current date and time.
Rounded edges
SYSDATE
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
Running a script file
40. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
VALUES clause of an INSERT statement
Combine
VALUES
Semicolon or forward slash
41. Dynamic views begin with a ___________.
X
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.
V$
STORAGE
42. List 4 aggregate functions
Equijoin
+
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Twice
43. 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
44. Which format mask displays December 31st - 1999?
UNION
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
99.99
Month ddth - yyyy
45. The ______ operator compares a list of values for equivalency
Extra spaces
Recursive
Actual column
ANY
46. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Run scripts
Script
Data
Common column value
47. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
USER_ - ALL_ - DBA_ - and V$
IN ANY ALL SOME
The indexed column is part of an expression. In this case - consider creating a function-based index instead
ROLLBACK
48. The term ____________ ___________ is used to express a join that satisfies the join condition.
B-Tree Index
Twice
INNER JOIN
Equijoin and correlated subquery
49. Comparison operators can compare multiple _________________.
Inconsistencies
Columns
Structured Query Language
Script
50. The using clause of the ANSI join syntax always assumes an...
Month ddth - yyyy
DICTIONARY
INTERSECT
Equijoin and identical column names