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. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
SYSDATE
Equijoin
Parent table
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
2. Which operator is most commonly used?
Same
SUM
ADD
UNION
3. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Structured Query Language
Null
VALUES clause of an INSERT statement
FALSE
4. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
DESC dict;
KEEP INDEX
5. Queries that are found in parentheses are done first - just as in the order of operations when doing...
The indexed column is part of an expression. In this case - consider creating a function-based index instead
All
Mathematical equations
Surrogate
6. List 6 Table-Related Menu Choices
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
When the table is small (unless your business rules require you too)
VALUES clause of an INSERT statement
+
7. Checks whether any value in the list makes the condition true.
BETWEEN
Any
Nested
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
8. The COUNT function uses the __________ wildcard.
Same
Asterisk
Both MIN and MAX
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
9. What is the name of the view where you can find the collection of static and data dictionary tables and views - along with their descriptions?
Multiple rows
Rounded edges
F12
DICTIONARY
10. How many characters can be stored in the CHAR column/field?
F12
Script
2000
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
11. The RTRIM function is useful for eliminating ________ in a string.
ADD
Precision
Extra spaces
Running a script file
12. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
FALSE
Semicolon or forward slash
ADD_MONTHS function
The way NULL values are treated
13. In a view you can give a column a different name than it has in the...
LENGTH
2000
Parent table
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
14. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
**** 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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Implicit conversion
ALL_OBJECTS
15. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Details
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.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ROLLBACK
16. The ROWID pseudocolumn is not an ________- but it acts like one.
Time zone
Actual column
USER_ - ALL_ - DBA_ - and V$
@ or START
17. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
Testing functions
IN ANY ALL SOME
ANY
18. What are the main components of a ROWID?
Re-create
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.
Time zone
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
19. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
V$
KEEP INDEX
Month ddth - yyyy
20. Checks whether any value in the list makes the condition true.
4
Twice
Any
RENAME just_two_more_weeks TO finally_i
21. A join across three tables can be expressed with the ________ join syntax.
STORAGE
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.
ANSI
Optional
22. What is the most common DATE format found in SQL?
DESC dict;
DD-MON-YY
Orphan
BETWEEN
23. Subqueries can return...
Multiple rows
DROP INDEX need_to_pass_i
Self-joins
Both MIN and MAX
24. Explain how the SPOOL command is used and what program it can be used in.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
4
Any
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
25. LINESIZE
VALUES clause of an INSERT statement
Any
Time zone
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
26. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
999999.9999
GROUP BY
X
MINUS
27. The __________ operator is inclusive of the two values specified.
Implicit conversion
Correlated
LIKE
BETWEEN
28. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
B-Tree Index
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
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
The indexed column is part of an expression. In this case - consider creating a function-based index instead
29. You use the _________ keyword to add columns or constraints to a table.
Primary key/foreign key
Actual column
ADD
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
30. Another name for a data dictionary view is __________________ or _________________.
B-Tree Index
Static or dynamic
DECODE
Equijoin and identical column names
31. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Structured Query Language
VALUES clause of an INSERT statement
Equijoin and identical column names
Surrogate key
32. Write the syntax to rename index just_two_more_weeks_i to finally_i
ROLLBACK
Combine
RENAME just_two_more_weeks TO finally_i
Inconsistencies
33. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
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.
Surrogate
Rounded edges
999999.9999
34. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
LIKE
Equijoin and identical column names
FALSE
35. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Any
Columns
Retrieve
COMMIT
36. What do views do that makes them so useful for security?
Hide data
LIKE
**** 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
RUN SCRIPT
37. To restart a sequence at a lower number - you can drop and ________ the sequence.
SUM
Re-create
@ or START
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
38. 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
39. The time zone displacement value indicates the time difference from _______.
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
X
**** 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
40. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
Equijoin and correlated subquery
V$
Columns
41. You can pass parameters from the operating system when ___________ in SQl*Plus
SELECT DISTINCT menu FROM restaurant
Running a script file
4000
Nested
42. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
X
VALUES clause of an INSERT statement
Results
43. It is considered good form to put all SQL commands in...
All caps
Export Data
USER_ - ALL_ - DBA_ - and V$
INTERSECT
44. Explain what a static data dictionary view is and how it is used
X
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.
TO_CHAR function
Structured Query Language
45. 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.
VALUES
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
TO_CHAR function
Re-create
46. The _______ operator determines common rows.
INTERSECT
Same
Orphan
B-Tree Index
47. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
ADD
Equijoin and correlated subquery
UNION
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
48. Returns rows if the condition is true for all the values in the list
ON
Has not changed the name
All
Semicolon or forward slash
49. 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.
Scalar
Run scripts
Equijoin
50. What is the maximum value for a column defined as NUMBER(4 -2)?
FALSE
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
DROP INDEX need_to_pass_i
99.99