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 the steps needed to run a script in SQL Developer
Default is 14; when you use the default - you repeat the heading every 14 rows.
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.
X
UNION operator
2. 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.
X
Has not changed the name
BETWEEN
Script
3. Subqueries can return...
A correct statement
Export Data
ON
Multiple rows
4. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Primary key/foreign key
RUN SCRIPT
Three
Optional
5. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
Twice
4000
Actual column
6. 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.
Location of the file
All
Nested
FALSE
7. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
B-Tree Index
Equijoin
Both MIN and MAX
User-defined reports
8. Which format mask displays December 31st - 1999?
Optional
DECODE
Month ddth - yyyy
Equijoin
9. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
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
Same
Has not changed the name
COMMIT
10. Explain why constraints are used when building tables.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
11. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Equijoin
Fractional seconds
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
Testing functions
12. Queries that are found in parentheses are done first - just as in the order of operations when doing...
STORAGE
NATURAL JOIN
X
Mathematical equations
13. Which operator is most commonly used?
All caps
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
Fractional seconds
UNION
14. Explain how Substitution Variables are used when writing scripts.
DD-MON-YY
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.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Static or dynamic
15. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
TO_CHAR function
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.
Default is 14; when you use the default - you repeat the heading every 14 rows.
16. The ______ operator compares a list of values for equivalency
SYSDATE
ANY
STORAGE
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.
17. The time zone displacement value indicates the time difference from _______.
UTC
ON
STORAGE
ADD_MONTHS function
18. _________ rows are not allowed in the relational model.
Three
Leading-edge
Scale
Orphan
19. You use the __________ keyword to change characteristics of a column.
VALUES clause of an INSERT statement
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Another null
MODIFY
20. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Surrogate
Any
21. A calculation with a null always yields...
Another null
Equijoin and identical column names
DESC dict;
FALSE
22. Explain what a static data dictionary view is and how it is used
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.
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.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
23. Users can only see changes made to a database once they have been...
All caps
Committed
FALSE
UTC
24. The ___________ operator tests whether a matching row cannot be found.
Common column value
X
SET clause of an UPDATE statement
Logical unit of work
25. Checks whether any value in the list makes the condition true.
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.
Correlated
Any
INTERSECT
26. 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
27. _________________ relationships are always optional relationships.
Retrieve
Recursive
DICTIONARY
Equijoin
28. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
SELECT DISTINCT menu FROM restaurant
Export Data
FALSE
2000
29. Comparison operators can compare multiple _________________.
2000
The way NULL values are treated
Columns
Scalar
30. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Multiple rows
MODIFY
Surrogate
31. To join four tables - you must have at least _____ join conditions.
Parent table
Time zone
Three
COMMIT
32. What is the first column of a composite index called?
@ or START
Leading-edge
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
999999.9999
33. What is the maximum value for a column defined as NUMBER(4 -2)?
MINUS
DROP INDEX need_to_pass_i
Export Data
99.99
34. What do views do that makes them so useful for security?
Implicit conversion
ANY
Results
Hide data
35. The ALTER SESSION statement can change the session's...
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Time zone
USER_ - ALL_ - DBA_ - and V$
FALSE
36. What is the keyboard shortcut for the ROLLBACK command?
ROLLBACK
When the table is small (unless your business rules require you too)
Columns
F12
37. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
ADD
ALL_OBJECTS
ON
38. The DUAL table can be used for...
MINUS
Testing functions
Optional
VALUES clause of an INSERT statement
39. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
DECODE
Non-matching rows
Actual column
Scale
40. Match each of the SQL commands on the left with a verb from the list.
Results
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
FALSE
Has not changed the name
41. SELECT * FROM instructor ORDER BY phone
Fractional seconds
Data
A correct statement
Nested
42. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
4
Primary key/foreign key
SELECT DISTINCT menu FROM restaurant
43. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
4000
X
MODIFY
ON
44. What is the most common DATE format found in SQL?
Actual column
Location of the file
Combine
DD-MON-YY
45. __________________ inserts the current date and time.
SYSDATE
COMMIT
Data
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
46. The COUNT function is useful for determining whether a table has...
Data
Asterisk
RIGHT LEFT JOIN
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
47. To restart a sequence at a lower number - you can drop and ________ the sequence.
99.99
Results
Re-create
B-Tree Index
48. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Optional
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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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.
49. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
When the table is small (unless your business rules require you too)
Location of the file
VALUES
MINUS
50. When is it not a good idea to use an index?
COMMIT
Leading-edge
Mathematical equations
When the table is small (unless your business rules require you too)