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. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
USER_ - ALL_ - DBA_ - and V$
Primary key/foreign key
Month ddth - yyyy
Script
2. Checks whether any value in the list makes the condition true.
Optional
DECODE
GROUP BY
Any
3. To join four tables - you must have at least _____ join conditions.
Surrogate
LENGTH
Three
Asterisk
4. In a view you can give a column a different name than it has in the...
Any
INNER JOIN
Parent table
MODIFY
5. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
SELECT DISTINCT menu FROM restaurant
Inconsistencies
Another null
6. Write a solution that adds 20 minutes to a given date.
LIKE
VALUES clause of an INSERT statement
SELECT SYSDATE+1/96 - FROM dual
F12
7. Explain how Substitution Variables are used when writing scripts.
Crow's foot
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.
Extra spaces
8. How many characters can be stored in the CHAR column/field?
Committed
Structured Query Language
Running a script file
2000
9. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Both MIN and MAX
Data
Default is 14; when you use the default - you repeat the heading every 14 rows.
10. The same function can be used ______ in a SELECT statement.
DD-MON-YY
Groups
SUM
Twice
11. The ALTER SESSION statement can change the session's...
RUN SCRIPT
Time zone
LENGTH
Multiple rows
12. Explicit data type conversion is preferable to Oracle's...
Implicit conversion
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.
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
X
13. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Precision
Details
14. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Export Data
+
When the table is small (unless your business rules require you too)
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
15. How many characters can you have using the VARCHAR data type?
Scale
Results
4000
SELECT DISTINCT menu FROM restaurant
16. SQL*Plus is used more than SQL Developer when you need to...
VALUES clause of an INSERT statement
Orphan
Rounded edges
Run scripts
17. LINESIZE
Location of the file
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
MODIFY
ON
18. UNION ALL does not sort - therefore it is less time consuming to use than the...
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
12:00:00 A.M
UNION operator
All
19. NUMBER functions can be...
Same
Nested
UNION operator
Common column value
20. The COUNT function uses the __________ wildcard.
UNION
Columns
Asterisk
+
21. 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
22. 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.
VALUES
Inconsistencies
Default is 14; when you use the default - you repeat the heading every 14 rows.
Has not changed the name
23. You can use the ________________ to subtract months from a given date.
V$
4000
Equijoin and correlated subquery
ADD_MONTHS function
24. 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
25. 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
Surrogate key
DESC dict;
LENGTH
26. Explain how the SPOOL command is used and what program it can be used in.
Orphan
COMMIT
Run scripts
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
27. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Actual column
Run scripts
VALUES clause of an INSERT statement
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.
28. It is considered good form to put all SQL commands in...
All caps
DECODE
CLOB
Surrogate
29. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
+
IN ANY ALL SOME
CLOB
SELECT DISTINCT menu FROM restaurant
30. The focus of the logical data model is _____________
Business problems
Precision
Equijoin and identical column names
Extra spaces
31. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
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.
STORAGE
Any
Combine
32. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
F12
DESC dict;
FALSE
SYSDATE
33. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
12:00:00 A.M
UNION operator
DECODE
34. Subqueries can return...
The indexed column is part of an expression. In this case - consider creating a function-based index instead
When the table is small (unless your business rules require you too)
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.
Multiple rows
35. _________________ relationships are always optional relationships.
Recursive
Month ddth - yyyy
Inconsistencies
ADD_MONTHS function
36. Explain what is found in the All Objects report folder in SQL Developer
Another null
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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.
Same
37. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
VALUES
+
Common column value
Structured Query Language
38. What is Oracle's most popular index storage structure?
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.
Equijoin
VALUES clause of an INSERT statement
B-Tree Index
39. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
RIGHT LEFT JOIN
TO_CHAR function
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
UNION operator
40. What is the name of the key automatically generated from a sequence?
Surrogate key
Logical unit of work
SELECT DISTINCT menu FROM restaurant
Scale
41. Which operator is most commonly used?
Inconsistencies
UNION
Black
Nested
42. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Rounded edges
RENAME just_two_more_weeks TO finally_i
Any
DROP INDEX need_to_pass_i
43. Which format mask displays December 31st - 1999?
**** 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
Retrieve
DICTIONARY
Month ddth - yyyy
44. The RTRIM function is useful for eliminating ________ in a string.
4000
INNER JOIN
@ or START
Extra spaces
45. List 4 aggregate functions
X
INTERSECT
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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.
46. The query retrieves more than 5 to 15 percent of the rows
Equijoin and identical column names
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Extra spaces
Hide data
47. __________________ inserts the current date and time.
Optional
Details
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
SYSDATE
48. You can pass parameters from the operating system when ___________ in SQl*Plus
99.99
Running a script file
SELECT DISTINCT menu FROM restaurant
SET clause of an UPDATE statement
49. List the different types of data dictionary views.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
MINUS
USER_ - ALL_ - DBA_ - and V$
Export Data
50. 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.
FALSE
A correct statement
Surrogate
Mathematical equations