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. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Any
Mathematical equations
Export Data
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
2. When writing an ANSI outer join - the keywords _________ OUTER and _________ OUTER are added to the __________ keyword to indicate the rows from which table to use.
Surrogate key
MINUS
RIGHT LEFT JOIN
Optional
3. What is the data type you can use if you need an unlimited number of textual characters?
Details
CLOB
Run scripts
Testing functions
4. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
Leading-edge
RENAME just_two_more_weeks TO finally_i
X
5. The _______ function adds values together for a group of rows.
Has not changed the name
Logical unit of work
SUM
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
6. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Correlated
ANY
Structured Query Language
LIKE
7. Another name for a data dictionary view is __________________ or _________________.
B-Tree Index
4
Static or dynamic
ANSI
8. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
USER_ - ALL_ - DBA_ - and V$
BETWEEN
STORAGE
99.99
9. 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
10. Which operator is most commonly used?
SELECT SYSDATE+1/96 - FROM dual
Recursive
Nested
UNION
11. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
CLOB
Both MIN and MAX
@ or START
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
12. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
RUN SCRIPT
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
UNION operator
When the table is small (unless your business rules require you too)
13. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
Static or dynamic
VALUES
COMMIT
14. 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
Precision
2000
15. Users can only see changes made to a database once they have been...
SELECT SYSDATE+1/96 - FROM dual
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.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Committed
16. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Orphan
Nested
User-defined reports
Committed
17. The ______ operator compares a list of values for equivalency
Has not changed the name
Another null
999999.9999
ANY
18. Which format mask displays December 31st - 1999?
Month ddth - yyyy
X
Business problems
The indexed column is part of an expression. In this case - consider creating a function-based index instead
19. The key that most database designers prefer and is chosen by the system is the _____________ key.
4
Surrogate
Time zone
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
20. The DUAL table can be used for...
Testing functions
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
BETWEEN
Logical unit of work
21. A _________ subquery returns a single column with a single row
Retrieve
Scalar
Re-create
Month ddth - yyyy
22. A calculation with a null always yields...
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
DICTIONARY
Another null
23. Checks whether any value in the list makes the condition true.
SELECT SYSDATE+1/96 - FROM dual
@ or START
Business problems
Any
24. LINESIZE
Twice
DICT_COLUMNS
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.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
25. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Time zone
Same
UNION operator
X
26. To equijoin a table with another table involves matching the...
Common column value
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
Run scripts
+
27. 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
28. What are the main components of a ROWID?
User-defined reports
Groups
B-Tree Index
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.
29. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Groups
X
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.
ADD
30. Subqueries can return...
Committed
Extra spaces
Multiple rows
UNION
31. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
DESC dict;
Semicolon or forward slash
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
Equijoin and correlated subquery
32. Joins involving multiple columns must always follow the ____________ relationship path.
RENAME just_two_more_weeks TO finally_i
Primary key/foreign key
Multiple rows
SELECT SYSDATE+1/96 - FROM dual
33. The ____________ command makes changes permanent.
F12
All caps
COMMIT
Twice
34. To restart a sequence at a lower number - you can drop and ________ the sequence.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Re-create
Same
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.
35. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
Location of the file
DECODE
Nested
36. The COUNT function uses the __________ wildcard.
V$
Asterisk
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.
Nested
37. ____________ are useful for analyzing and exploring the relationships within your data
Business problems
DD-MON-YY
Self-joins
Equijoin and correlated subquery
38. _________ rows are not allowed in the relational model.
Orphan
Equijoin and correlated subquery
ANY
Location of the file
39. _________________ relationships are always optional relationships.
UTC
Recursive
Re-create
SET clause of an UPDATE statement
40. The __________ operator is inclusive of the two values specified.
BETWEEN
Running a script file
DECODE
The way NULL values are treated
41. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
99.99
X
Equijoin and identical column names
The way NULL values are treated
42. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
DICT_COLUMNS
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Equijoin and identical column names
Semicolon or forward slash
43. The ROWID pseudocolumn is not an ________- but it acts like one.
Implicit conversion
ANSI
Month ddth - yyyy
Actual column
44. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Has not changed the name
USER_ - ALL_ - DBA_ - and V$
ROLLBACK
ANY
45. SELECT LIST of a subquery in an INSERT statement
X
Null
SET clause of an UPDATE statement
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
46. The RTRIM function is useful for eliminating ________ in a string.
FALSE
Extra spaces
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
+
47. The TRUNC function on a date without a format model truncates the timestamp to...
Hide data
12:00:00 A.M
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
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.
48. Write a statement for SQL*Plus that shows the dictionary.
BETWEEN
BETWEEN
DESC dict;
Implicit conversion
49. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
Optional
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
4
50. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
999999.9999
Correlated
4000
**** 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