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 most common DATE format found in SQL?
DD-MON-YY
Both MIN and MAX
Inconsistencies
Nested
2. The _______ function lets you perform if-then-else functionality with the SQL language.
UNION operator
DECODE
RIGHT LEFT JOIN
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
3. What does SQL stand for?
BETWEEN
Equijoin and identical column names
Structured Query Language
2000
4. Users can only see changes made to a database once they have been...
2000
Committed
Multiple rows
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
5. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
FALSE
SYSDATE
Inconsistencies
6. Explain how Dynamic SQL is used and give an example of a Dynamic SQL 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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Time zone
F12
7. Explain the steps needed to run a script in SQL Developer
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.
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.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
DICTIONARY
8. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
B-Tree Index
ON
@ or START
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
9. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Testing functions
NATURAL JOIN
DICT_COLUMNS
ADD_MONTHS function
10. List the steps performed by a correlated subquery.
Fractional seconds
**** 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
LENGTH
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
11. The purpose of the HAVING clause is to eliminate___________.
IN ANY ALL SOME
2000
Groups
Nested
12. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.
FALSE
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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
VALUES
13. The _______ operator determines common rows.
Equijoin and correlated subquery
INTERSECT
Default is 14; when you use the default - you repeat the heading every 14 rows.
Month ddth - yyyy
14. SQL*Plus is used more than SQL Developer when you need to...
Leading-edge
Run scripts
COMMIT
Structured Query Language
15. 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?
DICTIONARY
Scalar
999999.9999
Inconsistencies
16. Converting a text literal to DATE format requires the use of the...
Parent table
TO_CHAR function
ANY
Has not changed the name
17. The time zone displacement value indicates the time difference from _______.
SET clause of an UPDATE statement
UTC
KEEP INDEX
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
18. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
99.99
DROP INDEX need_to_pass_i
Location of the file
Equijoin
19. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
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
LENGTH
Run scripts
MINUS
20. What is the main difference between the NOT EXISTS and the NOT IN operators?
Surrogate key
SET clause of an UPDATE statement
Re-create
The way NULL values are treated
21. The ALTER SESSION statement can change the session's...
Data
Time zone
DESC dict;
Fractional seconds
22. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Orphan
Groups
Default is 14; when you use the default - you repeat the heading every 14 rows.
ALL_OBJECTS
23. The ___________ operator tests whether a matching row cannot be found.
KEEP INDEX
X
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Surrogate
24. What is the first column of a composite index called?
Logical unit of work
Equijoin and correlated subquery
LENGTH
Leading-edge
25. The ROWID pseudocolumn is not an ________- but it acts like one.
Correlated
BETWEEN
VALUES
Actual column
26. Returns rows if the condition is true for all the values in the list
Any
All
X
LIKE
27. How many characters can you have using the VARCHAR data type?
VALUES
X
Surrogate
4000
28. 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
29. How many characters can be stored in the CHAR column/field?
2000
Data
Retrieve
LENGTH
30. 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
Rounded edges
Structured Query Language
Same
31. Queries that are found in parentheses are done first - just as in the order of operations when doing...
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.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Mathematical equations
VALUES clause of an INSERT statement
32. In a view you can give a column a different name than it has in the...
Fractional seconds
Mathematical equations
Parent table
VALUES clause of an INSERT statement
33. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Business problems
Command returns the number of records returned by a query.
Scale
DICT_COLUMNS
34. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
Details
STORAGE
Run scripts
35. Self-joins are useful for performing comparisons and checking for ___________ in data.
Columns
Both MIN and MAX
Inconsistencies
INNER JOIN
36. Explain how Substitution Variables are used when writing scripts.
X
Scale
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.
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.
37. 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.
SELECT SYSDATE+1/96 - FROM dual
FALSE
Surrogate
BETWEEN
38. You use the __________ keyword to change characteristics of a column.
MODIFY
ANSI
When the table is small (unless your business rules require you too)
VALUES clause of an INSERT statement
39. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Scalar
Orphan
Primary key/foreign key
Results
40. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
**** 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
DICTIONARY
All caps
X
41. List 6 Table-Related Menu Choices
Scale
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Orphan
The indexed column is part of an expression. In this case - consider creating a function-based index instead
42. PAGESIZE
Same
IN ANY ALL SOME
Default is 14; when you use the default - you repeat the heading every 14 rows.
ROLLBACK
43. SELECT * FROM instructor ORDER BY phone
99.99
CLOB
RENAME just_two_more_weeks TO finally_i
A correct statement
44. Which format mask displays December 31st - 1999?
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
Month ddth - yyyy
BETWEEN
99.99
45. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Default is 14; when you use the default - you repeat the heading every 14 rows.
X
IN ANY ALL SOME
Export Data
46. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Same
Crow's foot
Logical unit of work
Both MIN and MAX
47. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
DD-MON-YY
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
12:00:00 A.M
MODIFY
48. The ____________ command makes changes permanent.
Surrogate key
Self-joins
COMMIT
LENGTH
49. Comparison operators can compare multiple _________________.
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
SUM
Columns
RIGHT LEFT JOIN
50. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Combine
SYSDATE
Rounded edges
X