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 # 4 is called the __________.
SYSDATE
Scale
RUN SCRIPT
ADD
2. PAGESIZE
X
Mathematical equations
Script
Default is 14; when you use the default - you repeat the heading every 14 rows.
3. The using clause of the ANSI join syntax always assumes an...
UNION
Equijoin and identical column names
UNION operator
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
4. 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
Running a script file
Common column value
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
5. Which format mask displays December 31st - 1999?
INNER JOIN
X
Static or dynamic
Month ddth - yyyy
6. Explain in detail the impact of INDEXES and how they are used by Oracle.
BETWEEN
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
Groups
Self-joins
7. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
The way NULL values are treated
999999.9999
VALUES clause of an INSERT statement
X
8. The TRUNC function on a date without a format model truncates the timestamp to...
12:00:00 A.M
Run scripts
Both MIN and MAX
2000
9. Which operator is most commonly used?
Scalar
12:00:00 A.M
Surrogate
UNION
10. The same function can be used ______ in a SELECT statement.
12:00:00 A.M
Twice
Time zone
SELECT DISTINCT menu FROM restaurant
11. SELECT LIST of a subquery in an INSERT statement
Crow's foot
DECODE
SET clause of an UPDATE statement
Running a script file
12. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Mathematical equations
When the table is small (unless your business rules require you too)
Combine
NATURAL JOIN
13. What is the most common DATE format found in SQL?
12:00:00 A.M
DD-MON-YY
UTC
UNION
14. The ____________ command makes changes permanent.
A correct statement
COMMIT
Self-joins
DD-MON-YY
15. The _______ operator determines common rows.
Location of the file
INNER JOIN
INTERSECT
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
16. What is Oracle's most popular index storage structure?
Surrogate
Any
B-Tree Index
KEEP INDEX
17. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Data
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
MODIFY
User-defined reports
18. You use the _________ keyword to add columns or constraints to a table.
ADD
Crow's foot
Groups
SELECT SYSDATE+1/96 - FROM dual
19. What is the first column of a composite index called?
GROUP BY
Common column value
Export Data
Leading-edge
20. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
SET clause of an UPDATE statement
Multiple rows
Black
IN ANY ALL SOME
21. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
KEEP INDEX
Asterisk
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
Month ddth - yyyy
22. What is the keyboard shortcut for the ROLLBACK command?
Non-matching rows
F12
RENAME just_two_more_weeks TO finally_i
ALL_OBJECTS
23. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
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.
Crow's foot
F12
Rounded edges
24. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
Nested
X
NATURAL JOIN
VALUES clause of an INSERT statement
25. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
Orphan
Script
Rounded edges
26. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Hide data
GROUP BY
MINUS
Primary key/foreign key
27. When column names on the tables are different - you use the ______ condition.
ON
UTC
Structured Query Language
+
28. When you INSERT new information into a table - it is followed with a _______ keyword that contains the information that is going to be added to the table.
DD-MON-YY
IN ANY ALL SOME
Any
VALUES
29. The _______ function adds values together for a group of rows.
4000
DICTIONARY
MINUS
SUM
30. UNION ALL does not sort - therefore it is less time consuming to use than the...
Scale
X
Groups
UNION operator
31. 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.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
The way NULL values are treated
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.
RIGHT LEFT JOIN
32. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
ANSI
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
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.
User-defined reports
Multiple rows
All
34. What is the maximum value for a column defined as NUMBER(4 -2)?
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
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.
Committed
99.99
35. To restart a sequence at a lower number - you can drop and ________ the sequence.
Asterisk
Scale
Re-create
RENAME just_two_more_weeks TO finally_i
36. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
DD-MON-YY
KEEP INDEX
Columns
Scale
37. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
12:00:00 A.M
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
Orphan
Run scripts
38. A _________ subquery returns a single column with a single row
Scalar
Equijoin and identical column names
DICTIONARY
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
39. Explain how the SPOOL command is used and what program it can be used in.
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
Running a script file
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Inconsistencies
40. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
@ or START
Any
Optional
Testing functions
41. LINESIZE
TO_CHAR function
Semicolon or forward slash
Null
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
42. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Asterisk
Month ddth - yyyy
Parent table
999999.9999
43. ____________ are useful for analyzing and exploring the relationships within your data
Groups
Self-joins
Export Data
RENAME just_two_more_weeks TO finally_i
44. Another name for a data dictionary view is __________________ or _________________.
Static or dynamic
Equijoin and correlated subquery
999999.9999
Testing functions
45. Checks whether any value in the list makes the condition true.
Correlated
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.
Any
Equijoin and identical column names
46. The ______ operator compares a list of values for equivalency
UTC
SELECT DISTINCT menu FROM restaurant
ANY
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.
47. You can use the ________________ to subtract months from a given date.
F12
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
Black
ADD_MONTHS function
48. Queries that are found in parentheses are done first - just as in the order of operations when doing...
DD-MON-YY
When the table is small (unless your business rules require you too)
Run scripts
Mathematical equations
49. Returns rows if the condition is true for all the values in the list
STORAGE
All
The indexed column is part of an expression. In this case - consider creating a function-based index instead
UNION
50. 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