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. The ___________ operator tests whether a matching row cannot be found.
Any
X
DD-MON-YY
Fractional seconds
2. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
Groups
INTERSECT
Three
3. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
B-Tree Index
A correct statement
12:00:00 A.M
Equijoin
4. Write a statement for SQL*Plus that shows the dictionary.
Scale
DESC dict;
GROUP BY
BETWEEN
5. A _________ subquery returns a single column with a single row
Extra spaces
Scalar
RUN SCRIPT
DECODE
6. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
DICT_COLUMNS
RIGHT LEFT JOIN
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
Mathematical equations
7. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Groups
A correct statement
Script
Both MIN and MAX
8. __________________ inserts the current date and time.
LIKE
UNION
SELECT DISTINCT menu FROM restaurant
SYSDATE
9. How many characters can be stored in the CHAR column/field?
Data
2000
B-Tree Index
All caps
10. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
X
SELECT DISTINCT menu FROM restaurant
IN ANY ALL SOME
USER_ - ALL_ - DBA_ - and V$
11. The purpose of the HAVING clause is to eliminate___________.
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
Orphan
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Groups
12. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
Precision
The way NULL values are treated
Recursive
13. 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.
Precision
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.
VALUES
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
14. List the steps performed by a correlated subquery.
**** 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
SELECT SYSDATE+1/96 - FROM dual
ALL_OBJECTS
Leading-edge
15. Explain how Substitution Variables are used when writing scripts.
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.
TO_CHAR function
Scale
Nested
16. The key that most database designers prefer and is chosen by the system is the _____________ key.
Retrieve
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.
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
Surrogate
17. Oracle uses the outer join operator to indicate that nulls are shown for...
Hide data
Re-create
ANY
Non-matching rows
18. The ROWID pseudocolumn is not an ________- but it acts like one.
INTERSECT
DECODE
Actual column
UNION operator
19. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
SELECT SYSDATE+1/96 - FROM dual
Scale
Surrogate
Optional
20. The ____________ command makes changes permanent.
SELECT DISTINCT menu FROM restaurant
COMMIT
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.
999999.9999
21. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
VALUES
Non-matching rows
Structured Query Language
KEEP INDEX
22. Explain the steps needed to run a script in SQL Developer
Implicit conversion
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.
RUN SCRIPT
BETWEEN
23. When is it not a good idea to use an index?
All
99.99
ADD
When the table is small (unless your business rules require you too)
24. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
999999.9999
Run scripts
Rounded edges
Crow's foot
25. 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
26. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
SET clause of an UPDATE statement
VALUES
27. The _____________ clause determines how rows are grouped.
Retrieve
Extra spaces
GROUP BY
Has not changed the name
28. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
Null
Default is 14; when you use the default - you repeat the heading every 14 rows.
Time zone
29. The ________ operator cannot compare against a list of values.
LIKE
ROLLBACK
99.99
Implicit conversion
30. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
NATURAL JOIN
V$
Common column value
Crow's foot
31. 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.
RUN SCRIPT
Nested
FALSE
STORAGE
32. 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
KEEP INDEX
4000
Twice
33. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
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.
Equijoin and identical column names
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.
MINUS
34. NUMBER functions can be...
Orphan
Has not changed the name
Nested
Time zone
35. A join across three tables can be expressed with the ________ join syntax.
ANSI
When the table is small (unless your business rules require you too)
Another null
FALSE
36. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Self-joins
Correlated
FALSE
RENAME just_two_more_weeks TO finally_i
37. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
Another null
IN ANY ALL SOME
DROP INDEX need_to_pass_i
Optional
38. The ______ operator compares a list of values for equivalency
DD-MON-YY
Rounded edges
All
ANY
39. How many characters can you have using the VARCHAR data type?
Location of the file
4000
User-defined reports
DESC dict;
40. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
TO_CHAR function
Actual column
Run scripts
4
41. _________________ relationships are always optional relationships.
Recursive
MINUS
Retrieve
V$
42. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
COMMIT
Asterisk
Multiple rows
43. The _______ function lets you perform if-then-else functionality with the SQL language.
UNION operator
DECODE
VALUES clause of an INSERT statement
Scalar
44. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Orphan
ROLLBACK
4
MODIFY
45. What is the first column of a composite index called?
Multiple rows
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
Leading-edge
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
46. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
DESC dict;
KEEP INDEX
IN ANY ALL SOME
Equijoin and correlated subquery
47. 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
48. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
UNION operator
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
Actual column
49. When you have issued a DELETE command - you can still ________ those rows and restore the information.
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
Retrieve
RIGHT LEFT JOIN
50. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Multiple rows
Primary key/foreign key
Three
Semicolon or forward slash