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 using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Rounded edges
999999.9999
BETWEEN
Three
2. The ___________ operator tests whether a matching row cannot be found.
ANSI
INTERSECT
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
X
3. What do views do that makes them so useful for security?
Surrogate
Semicolon or forward slash
Primary key/foreign key
Hide data
4. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
Precision
Testing functions
Business problems
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
5. You use the _________ keyword to add columns or constraints to a table.
Both MIN and MAX
NATURAL JOIN
Twice
ADD
6. Explain what a static data dictionary view is and how it is used
Re-create
SUM
F12
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.
7. 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.
Has not changed the name
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
ON
Extra spaces
8. The key that most database designers prefer and is chosen by the system is the _____________ key.
Nested
Surrogate
MODIFY
Surrogate key
9. 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.
Extra spaces
FALSE
When the table is small (unless your business rules require you too)
A correct statement
10. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Scalar
Script
Precision
Orphan
11. Write a statement for SQL*Plus that shows the dictionary.
Scale
Rounded edges
4
DESC dict;
12. 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
13. The using clause of the ANSI join syntax always assumes an...
User-defined reports
Both MIN and MAX
Equijoin and identical column names
CLOB
14. The purpose of the HAVING clause is to eliminate___________.
Groups
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.
V$
Correlated
15. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Testing functions
BETWEEN
Mathematical equations
Columns
16. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
Primary key/foreign key
A correct statement
@ or START
ADD
17. In a view you can give a column a different name than it has in the...
SUM
IN ANY ALL SOME
When the table is small (unless your business rules require you too)
Parent table
18. _________ rows are not allowed in the relational model.
Orphan
Surrogate key
Black
Another null
19. The COUNT function uses the __________ wildcard.
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
+
V$
Asterisk
20. What is the first column of a composite index called?
Default is 14; when you use the default - you repeat the heading every 14 rows.
Leading-edge
ADD
Run scripts
21. FEEDBACK
Command returns the number of records returned by a query.
X
X
SELECT DISTINCT menu FROM restaurant
22. The _______ operator determines common rows.
INTERSECT
Columns
Null
Business problems
23. What is the main difference between the NOT EXISTS and the NOT IN operators?
Committed
Business problems
Any
The way NULL values are treated
24. To equijoin a table with another table involves matching the...
FALSE
Business problems
Common column value
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
25. Which format mask displays December 31st - 1999?
Business problems
Details
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
Month ddth - yyyy
26. Explain in detail the impact of INDEXES and how they are used by Oracle.
SELECT DISTINCT menu FROM restaurant
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
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
Command returns the number of records returned by a query.
27. The _____________ clause determines how rows are grouped.
Equijoin
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.
X
GROUP BY
28. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
TO_CHAR function
The indexed column is part of an expression. In this case - consider creating a function-based index instead
RENAME just_two_more_weeks TO finally_i
29. PAGESIZE
Running a script file
Default is 14; when you use the default - you repeat the heading every 14 rows.
Structured Query Language
Command returns the number of records returned by a query.
30. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Optional
INNER JOIN
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Committed
31. SELECT * FROM instructor ORDER BY phone
X
A correct statement
VALUES
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
32. When is it not a good idea to use an index?
KEEP INDEX
When the table is small (unless your business rules require you too)
Any
GROUP BY
33. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
RIGHT LEFT JOIN
VALUES clause of an INSERT statement
Has not changed the name
RENAME just_two_more_weeks TO finally_i
34. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
F12
Groups
DICT_COLUMNS
Committed
35. Oracle uses the outer join operator to indicate that nulls are shown for...
USER_ - ALL_ - DBA_ - and V$
Equijoin
Re-create
Non-matching rows
36. The focus of the logical data model is _____________
TO_CHAR function
BETWEEN
Business problems
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
37. Explain how Substitution Variables are used when writing scripts.
+
Structured Query Language
Equijoin
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.
38. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
Details
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
ANSI
39. When column names on the tables are different - you use the ______ condition.
LENGTH
ON
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
Columns
40. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
RENAME just_two_more_weeks TO finally_i
Equijoin
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
BETWEEN
41. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Asterisk
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.
Combine
Business problems
42. How many characters can you have using the VARCHAR data type?
F12
ANY
4000
Extra spaces
43. UNION ALL does not sort - therefore it is less time consuming to use than the...
Groups
UNION operator
FALSE
BETWEEN
44. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Crow's foot
SELECT DISTINCT menu FROM restaurant
DICTIONARY
NATURAL JOIN
45. Users can only see changes made to a database once they have been...
V$
Committed
Time zone
MINUS
46. The _______ function adds values together for a group of rows.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
999999.9999
SELECT DISTINCT menu FROM restaurant
SUM
47. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
RENAME just_two_more_weeks TO finally_i
STORAGE
FALSE
Groups
48. NUMBER functions can be...
Equijoin and identical column names
DD-MON-YY
Nested
VALUES clause of an INSERT statement
49. Write a solution that adds 20 minutes to a given date.
Export Data
Scalar
SELECT SYSDATE+1/96 - FROM dual
ALL_OBJECTS
50. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
The indexed column is part of an expression. In this case - consider creating a function-based index instead
999999.9999
ALL_OBJECTS
Mathematical equations