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. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
Precision
SELECT SYSDATE+1/96 - FROM dual
GROUP BY
2. SELECT LIST of a subquery in an INSERT statement
DICTIONARY
SET clause of an UPDATE statement
Common column value
Inconsistencies
3. The term ____________ ___________ is used to express a join that satisfies the join condition.
X
@ or START
Default is 14; when you use the default - you repeat the heading every 14 rows.
INNER JOIN
4. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
SYSDATE
ROLLBACK
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Leading-edge
5. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
KEEP INDEX
X
ANSI
MODIFY
6. 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
7. Which format mask displays December 31st - 1999?
Common column value
Structured Query Language
F12
Month ddth - yyyy
8. The __________ operator is inclusive of the two values specified.
X
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
Equijoin and correlated subquery
BETWEEN
9. What is the main difference between the NOT EXISTS and the NOT IN operators?
Fractional seconds
TO_CHAR function
The way NULL values are treated
Script
10. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
Fractional seconds
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.
UTC
FALSE
11. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Scalar
Equijoin and correlated subquery
Equijoin and identical column names
NATURAL JOIN
12. You use the _________ keyword to add columns or constraints to a table.
ADD
Optional
ROLLBACK
Scale
13. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Surrogate key
+
BETWEEN
User-defined reports
14. The same function can be used ______ in a SELECT statement.
X
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
DECODE
Twice
15. What is the most common DATE format found in SQL?
DD-MON-YY
Inconsistencies
X
Three
16. 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.
B-Tree Index
FALSE
Details
COMMIT
17. __________________ inserts the current date and time.
SYSDATE
Script
Multiple rows
Any
18. Self-joins are useful for performing comparisons and checking for ___________ in data.
Leading-edge
Nested
12:00:00 A.M
Inconsistencies
19. What is the keyboard shortcut for the ROLLBACK command?
F12
Committed
Semicolon or forward slash
RIGHT LEFT JOIN
20. The using clause of the ANSI join syntax always assumes an...
Equijoin and identical column names
The way NULL values are treated
Hide data
Correlated
21. Another name for a data dictionary view is __________________ or _________________.
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
MINUS
UNION
Static or dynamic
22. PAGESIZE
VALUES clause of an INSERT statement
Default is 14; when you use the default - you repeat the heading every 14 rows.
Business problems
Any
23. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
BETWEEN
Multiple rows
STORAGE
24. The focus of the logical data model is _____________
Correlated
Business problems
DECODE
Location of the file
25. 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.
ON
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.
Has not changed the name
Both MIN and MAX
26. The ___________ operator tests whether a matching row cannot be found.
X
All caps
Scalar
Another null
27. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
999999.9999
CLOB
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.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
28. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
RIGHT LEFT JOIN
DESC dict;
GROUP BY
29. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Implicit conversion
Columns
Null
Default is 14; when you use the default - you repeat the heading every 14 rows.
30. Checks whether any value in the list makes the condition true.
MODIFY
Location of the file
Any
Non-matching rows
31. Returns rows if the condition is true for all the values in the list
COMMIT
All
DROP INDEX need_to_pass_i
DD-MON-YY
32. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
Semicolon or forward slash
4000
All
33. Explain the steps needed to run a script in SQL Developer
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.
DICTIONARY
UNION
KEEP INDEX
34. What is the tab in SQL Developer where data dictionary view information can be found?
Re-create
Testing functions
Details
Any
35. Explain how the SPOOL command is used and what program it can be used in.
ROLLBACK
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
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Null
36. List 4 aggregate functions
GROUP BY
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
X
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
37. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
SUM
Hide data
Both MIN and MAX
Equijoin
38. SELECT * FROM instructor ORDER BY phone
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
Any
A correct statement
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.
39. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
KEEP INDEX
X
SELECT DISTINCT menu FROM restaurant
Logical unit of work
40. 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
41. List 6 Table-Related Menu Choices
Results
Location of the file
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ON
42. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Crow's foot
Command returns the number of records returned by a query.
MINUS
43. Explain how Substitution Variables are used when writing scripts.
Twice
User-defined reports
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.
ANY
44. NUMBER functions can be...
SELECT DISTINCT menu FROM restaurant
Nested
Primary key/foreign key
ADD
45. The ____________ command makes changes permanent.
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.
COMMIT
LENGTH
4
46. Joins involving multiple columns must always follow the ____________ relationship path.
USER_ - ALL_ - DBA_ - and V$
Primary key/foreign key
Non-matching rows
Time zone
47. Write the syntax to rename index just_two_more_weeks_i to finally_i
Any
User-defined reports
RENAME just_two_more_weeks TO finally_i
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
48. Queries that are found in parentheses are done first - just as in the order of operations when doing...
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
Columns
99.99
Mathematical equations
49. When you run a script in SQL*Plus you must give the...
Location of the file
The way NULL values are treated
X
SYSDATE
50. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
Twice
Results
UNION