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. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
X
X
ON
2. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Testing functions
SELECT SYSDATE+1/96 - FROM dual
Multiple rows
Mathematical equations
3. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
UNION operator
RENAME just_two_more_weeks TO finally_i
4. The focus of the logical data model is _____________
Optional
Business problems
Testing functions
DICTIONARY
5. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Orphan
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.
All
Semicolon or forward slash
6. How many characters can you have using the VARCHAR data type?
999999.9999
Three
Any
4000
7. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
SUM
Precision
X
8. Joins involving multiple columns must always follow the ____________ relationship path.
Primary key/foreign key
RENAME just_two_more_weeks TO finally_i
Structured Query Language
4
9. Explain what is found in the All Objects report folder in SQL Developer
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
ROLLBACK
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
SYSDATE
10. The key that most database designers prefer and is chosen by the system is the _____________ key.
Implicit conversion
Surrogate
LIKE
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
11. Explain in detail the impact of INDEXES and how they are used by Oracle.
MODIFY
Same
Primary key/foreign key
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
12. List 6 Table-Related Menu Choices
DICTIONARY
Same
The way NULL values are treated
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
13. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
Any
Testing functions
+
14. A transaction is a...
Logical unit of work
Equijoin
Correlated
Asterisk
15. Explicit data type conversion is preferable to Oracle's...
Any
Surrogate key
Inconsistencies
Implicit conversion
16. Subqueries can return...
ADD
UNION
Multiple rows
X
17. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
Extra spaces
BETWEEN
Data
99.99
18. The ____________ command makes changes permanent.
COMMIT
LIKE
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.
Retrieve
19. When you have issued a DELETE command - you can still ________ those rows and restore the information.
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.
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.
Retrieve
BETWEEN
20. A join across three tables can be expressed with the ________ join syntax.
ANSI
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Business problems
12:00:00 A.M
21. What is the keyboard shortcut for the ROLLBACK command?
NATURAL JOIN
The indexed column is part of an expression. In this case - consider creating a function-based index instead
F12
Scale
22. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Surrogate
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Run scripts
DICT_COLUMNS
23. The ________ operator cannot compare against a list of values.
LIKE
SYSDATE
Any
Parent table
24. The ROWID pseudocolumn is not an ________- but it acts like one.
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
Combine
Static or dynamic
Actual column
25. 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
USER_ - ALL_ - DBA_ - and V$
Has not changed the name
The indexed column is part of an expression. In this case - consider creating a function-based index instead
26. What is the tab in SQL Developer where data dictionary view information can be found?
Details
ADD
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Results
27. You use the __________ keyword to change characteristics of a column.
Business problems
MODIFY
Surrogate key
FALSE
28. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Committed
X
IN ANY ALL SOME
ADD_MONTHS function
29. Which one of the following string functions tells you how many characters are in a string?
CLOB
Committed
LENGTH
Equijoin
30. List the different types of data dictionary views.
DROP INDEX need_to_pass_i
DICTIONARY
ANSI
USER_ - ALL_ - DBA_ - and V$
31. 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
32. To equijoin a table with another table involves matching the...
Orphan
RIGHT LEFT JOIN
Common column value
Structured Query Language
33. What does SQL stand for?
FALSE
Structured Query Language
Month ddth - yyyy
KEEP INDEX
34. It is considered good form to put all SQL commands in...
Equijoin
LENGTH
Surrogate key
All caps
35. FEEDBACK
Logical unit of work
+
BETWEEN
Command returns the number of records returned by a query.
36. Write a solution that adds 20 minutes to a given date.
INTERSECT
Scalar
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.
SELECT SYSDATE+1/96 - FROM dual
37. Match each of the SQL commands on the left with a verb from the list.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
DICTIONARY
Surrogate
Month ddth - yyyy
38. Users can only see changes made to a database once they have been...
Asterisk
Location of the file
ON
Committed
39. Another name for a data dictionary view is __________________ or _________________.
Static or dynamic
STORAGE
Columns
UNION
40. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
All
UNION
Orphan
Optional
41. The query retrieves more than 5 to 15 percent of the rows
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
99.99
The indexed column is part of an expression. In this case - consider creating a function-based index instead
All
42. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
V$
Script
VALUES clause of an INSERT statement
Re-create
43. To join four tables - you must have at least _____ join conditions.
LIKE
Implicit conversion
Rounded edges
Three
44. The _______ function adds values together for a group of rows.
Groups
Structured Query Language
UNION
SUM
45. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
User-defined reports
Precision
SUM
46. The ___________ operator tests whether a matching row cannot be found.
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.
Another null
TO_CHAR function
X
47. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
Common column value
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
+
48. 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.
Optional
RIGHT LEFT JOIN
Equijoin and identical column names
Data
49. The same function can be used ______ in a SELECT statement.
Twice
INTERSECT
All
UNION
50. Self-joins are useful for performing comparisons and checking for ___________ in data.
Inconsistencies
ANSI
Implicit conversion
Results