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 # 10 is called the __________.
Logical unit of work
Another null
Precision
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
2. You use the __________ keyword to change characteristics of a column.
X
MODIFY
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.
BETWEEN
3. The term ____________ ___________ is used to express a join that satisfies the join condition.
MODIFY
INNER JOIN
Orable's flashback query feature allows you to look at values of a query at a specific time in the past - such as before specfic DML statements occured. This can be usefull in case a suer accidentally performs an unintended but committed DML change.
@ or START
4. The ______ operator compares a list of values for equivalency
SYSDATE
KEEP INDEX
ANY
LIKE
5. What do views do that makes them so useful for security?
Hide data
Time zone
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
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
6. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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
ON
Export Data
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
7. Checks whether any value in the list makes the condition true.
All
Extra spaces
Any
Scalar
8. What is the keyboard shortcut for the ROLLBACK command?
DICTIONARY
F12
DESC dict;
ANSI
9. What is the data type you can use if you need an unlimited number of textual characters?
Another null
Running a script file
X
CLOB
10. The ROWID pseudocolumn is not an ________- but it acts like one.
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
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
11. 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
12. The _____________ clause determines how rows are grouped.
GROUP BY
ANSI
Nested
ADD_MONTHS function
13. 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
The way NULL values are treated
Location of the file
Another null
14. Explain the steps needed to run a script in SQL Developer
Optional
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.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
2000
15. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
UNION
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
Fractional seconds
The indexed column is part of an expression. In this case - consider creating a function-based index instead
16. In a view you can give a column a different name than it has in the...
Parent table
Surrogate
F12
Details
17. Checks whether any value in the list makes the condition true.
Equijoin and correlated subquery
Primary key/foreign key
Any
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
18. What is the most common DATE format found in SQL?
FALSE
ANSI
ALL_OBJECTS
DD-MON-YY
19. Which one of the following string functions tells you how many characters are in a string?
Three
LENGTH
UTC
ANSI
20. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Fractional seconds
SELECT DISTINCT menu FROM restaurant
Semicolon or forward slash
Recursive
21. The ________ operator cannot compare against a list of values.
4
4000
INTERSECT
LIKE
22. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
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
Orphan
RUN SCRIPT
Details
23. The ALTER SESSION statement can change the session's...
+
Time zone
SELECT SYSDATE+1/96 - FROM dual
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
24. A calculation with a null always yields...
Inconsistencies
RENAME just_two_more_weeks TO finally_i
Multiple rows
Another null
25. __________________ inserts the current date and time.
VALUES
RENAME just_two_more_weeks TO finally_i
DICT_COLUMNS
SYSDATE
26. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
X
BETWEEN
GROUP BY
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
27. 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
Both MIN and MAX
TO_CHAR function
COMMIT
28. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Results
DROP INDEX need_to_pass_i
The way NULL values are treated
User-defined reports
29. A transaction is a...
Logical unit of work
999999.9999
Committed
**** 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. The same function can be used ______ in a SELECT statement.
ANSI
ON
X
Twice
31. _________________ relationships are always optional relationships.
SET clause of an UPDATE statement
+
Nested
Recursive
32. Dynamic views begin with a ___________.
Parent table
2000
V$
When the table is small (unless your business rules require you too)
33. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Running a script file
RENAME just_two_more_weeks TO finally_i
Combine
RIGHT LEFT JOIN
34. The TRUNC function on a date without a format model truncates the timestamp to...
KEEP INDEX
12:00:00 A.M
FALSE
Non-matching rows
35. Subqueries can return...
Multiple rows
ANY
Structured Query Language
@ or START
36. It is considered good form to put all SQL commands in...
Month ddth - yyyy
All caps
Nested
4
37. 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
RENAME just_two_more_weeks TO finally_i
Logical unit of work
TO_CHAR function
38. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
VALUES clause of an INSERT statement
SELECT DISTINCT menu FROM restaurant
DICT_COLUMNS
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
39. To join four tables - you must have at least _____ join conditions.
NATURAL JOIN
ANSI
TO_CHAR function
Three
40. Returns rows if the condition is true for all the values in the list
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.
LENGTH
Actual column
All
41. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
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.
Logical unit of work
STORAGE
INNER JOIN
42. SELECT LIST of a subquery in an INSERT statement
SET clause of an UPDATE statement
Leading-edge
SELECT SYSDATE+1/96 - FROM dual
FALSE
43. The COUNT function is useful for determining whether a table has...
VALUES
Data
KEEP INDEX
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
44. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
The way NULL values are treated
RIGHT LEFT JOIN
DROP INDEX need_to_pass_i
BETWEEN
45. 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.
Script
FALSE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Correlated
46. When column names on the tables are different - you use the ______ condition.
All
SUM
ON
Location of the file
47. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
Another null
The way NULL values are treated
KEEP INDEX
48. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Time zone
Has not changed the name
NATURAL JOIN
Static or dynamic
49. Write a statement for SQL*Plus that shows the dictionary.
Surrogate
ANSI
DESC dict;
V$
50. List the reasons that a subquery could not be unnested.
RENAME just_two_more_weeks TO finally_i
X
Combine
Results