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. Explain what is found in the All Objects report folder in SQL Developer
Structured Query Language
Running a script file
**** 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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
2. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Any
LENGTH
3. List 6 Table-Related Menu Choices
BETWEEN
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
A correct statement
DESC dict;
4. What is the command you would type into SQL*Plus if you needed to know the definition for each column of a table?
Any
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
LIKE
DICT_COLUMNS
5. How many characters can you have using the VARCHAR data type?
User-defined reports
DECODE
Implicit conversion
4000
6. Users can only see changes made to a database once they have been...
DICT_COLUMNS
Committed
Re-create
USER_ - ALL_ - DBA_ - and V$
7. Write a statement that drops the index need_to_pass_i
Parent table
Default is 14; when you use the default - you repeat the heading every 14 rows.
DROP INDEX need_to_pass_i
Month ddth - yyyy
8. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Running a script file
ALL_OBJECTS
X
Nested
9. The focus of the logical data model is _____________
Business problems
LENGTH
Scalar
ALL_OBJECTS
10. Converting a text literal to DATE format requires the use of the...
Optional
TO_CHAR function
ROLLBACK
ALL_OBJECTS
11. _________________ relationships are always optional relationships.
Recursive
LIKE
Asterisk
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
12. You can pass parameters from the operating system when ___________ in SQl*Plus
Script
Has not changed the name
BETWEEN
Running a script file
13. The COUNT function is useful for determining whether a table has...
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
DESC dict;
Data
NATURAL JOIN
14. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
Retrieve
UNION operator
Command returns the number of records returned by a query.
15. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
KEEP INDEX
Structured Query Language
Recursive
RIGHT LEFT JOIN
16. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
Twice
RUN SCRIPT
Extra spaces
17. Write a statement for SQL*Plus that shows the dictionary.
SYSDATE
DESC dict;
IN ANY ALL SOME
Default is 14; when you use the default - you repeat the heading every 14 rows.
18. When you run a script in SQL*Plus you must give the...
Location of the file
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
NATURAL JOIN
Twice
19. Explain in detail the impact of INDEXES and how they are used by Oracle.
STORAGE
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.
Optional
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. 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
FALSE
DESC dict;
Committed
21. The DUAL table can be used for...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Groups
Correlated
Testing functions
22. What does SQL stand for?
Crow's foot
Structured Query Language
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.
Hide data
23. Explain the steps needed to run a script in SQL Developer
Precision
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.
Equijoin and correlated subquery
F12
24. Returns rows if the condition is true for all the values in the list
SET clause of an UPDATE statement
All
Actual column
Equijoin
25. Self-joins are useful for performing comparisons and checking for ___________ in data.
4
Location of the file
Inconsistencies
CLOB
26. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Has not changed the name
MINUS
V$
Month ddth - yyyy
27. Write the syntax to rename index just_two_more_weeks_i to finally_i
4000
Combine
Multiple rows
RENAME just_two_more_weeks TO finally_i
28. Explain how Substitution Variables are used when writing scripts.
Nested
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
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.
X
29. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Semicolon or forward slash
ANY
B-Tree Index
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
30. When column names on the tables are different - you use the ______ condition.
Running a script file
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
Equijoin and identical column names
31. The ROWID pseudocolumn is not an ________- but it acts like one.
Run scripts
Actual column
Logical unit of work
Surrogate key
32. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
@ or START
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.
BETWEEN
Static or dynamic
33. You can use the ________________ to subtract months from a given date.
Retrieve
V$
ADD_MONTHS function
DICT_COLUMNS
34. __________________ inserts the current date and time.
Any
CLOB
SYSDATE
Crow's foot
35. The _______ operator determines common rows.
INTERSECT
Time zone
Fractional seconds
ANY
36. You use the __________ keyword to change characteristics of a column.
MODIFY
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
Groups
Data
37. What is the tab in SQL Developer where data dictionary view information can be found?
Parent table
Details
VALUES
NATURAL JOIN
38. Subqueries can return...
Rounded edges
Any
Results
Multiple rows
39. _________ rows are not allowed in the relational model.
Run scripts
SYSDATE
Orphan
MINUS
40. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
SELECT SYSDATE+1/96 - FROM dual
Results
User-defined reports
STORAGE
41. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
IN ANY ALL SOME
Inconsistencies
Both MIN and MAX
42. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
LENGTH
SELECT DISTINCT menu FROM restaurant
STORAGE
MODIFY
43. When you have issued a DELETE command - you can still ________ those rows and restore the information.
RENAME just_two_more_weeks TO finally_i
Location of the file
Retrieve
Data
44. What is the keyboard shortcut for the ROLLBACK command?
CLOB
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
SELECT DISTINCT menu FROM restaurant
F12
45. Match each of the SQL commands on the left with a verb from the list.
+
USER_ - ALL_ - DBA_ - and V$
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Asterisk
46. 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
47. PAGESIZE
Location of the file
Default is 14; when you use the default - you repeat the heading every 14 rows.
Retrieve
DECODE
48. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Equijoin and identical column names
SUM
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
RUN SCRIPT
49. The COUNT function uses the __________ wildcard.
KEEP INDEX
STORAGE
Asterisk
INNER JOIN
50. What is the main difference between the NOT EXISTS and the NOT IN operators?
2000
The way NULL values are treated
Mathematical equations
Same