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*Plus is used more than SQL Developer when you need to...
SELECT DISTINCT menu FROM restaurant
Columns
Run scripts
99.99
2. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
ALL_OBJECTS
Equijoin and identical column names
2000
Actual column
3. _________________ relationships are always optional relationships.
Recursive
DICTIONARY
Self-joins
RENAME just_two_more_weeks TO finally_i
4. In SQL Developer field names and table names are shown in the color _______.
Black
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.
ADD_MONTHS function
4000
5. You can pass parameters from the operating system when ___________ in SQl*Plus
All
Running a script file
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
DECODE
6. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Any
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.
SET clause of an UPDATE statement
7. Dynamic views begin with a ___________.
V$
LENGTH
Extra spaces
Results
8. 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.
Asterisk
VALUES
NATURAL JOIN
Self-joins
9. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
VALUES clause of an INSERT statement
Asterisk
BETWEEN
ADD_MONTHS function
10. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
DICT_COLUMNS
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Logical unit of work
11. Oracle uses the outer join operator to indicate that nulls are shown for...
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 just_two_more_weeks TO finally_i
Committed
Non-matching rows
12. Checks whether any value in the list makes the condition true.
Nested
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
SYSDATE
Any
13. The key that most database designers prefer and is chosen by the system is the _____________ key.
Self-joins
2000
+
Surrogate
14. What is the keyboard shortcut for the ROLLBACK command?
Inconsistencies
Structured Query Language
F12
VALUES
15. __________________ inserts the current date and time.
SYSDATE
12:00:00 A.M
RENAME just_two_more_weeks TO finally_i
Equijoin
16. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
**** 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
Optional
UTC
X
17. 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
18. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
DD-MON-YY
INTERSECT
Static or dynamic
19. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Default is 14; when you use the default - you repeat the heading every 14 rows.
X
Combine
Scalar
20. The _______ function adds values together for a group of rows.
DROP INDEX need_to_pass_i
SUM
NATURAL JOIN
Correlated
21. Explain what is found in the All Objects report folder in SQL Developer
Parent table
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Rounded edges
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
22. What is the data type you can use if you need an unlimited number of textual characters?
ADD
CLOB
Primary key/foreign key
KEEP INDEX
23. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Leading-edge
DD-MON-YY
SELECT DISTINCT menu FROM restaurant
KEEP INDEX
24. The purpose of the HAVING clause is to eliminate___________.
Both MIN and MAX
RUN SCRIPT
Extra spaces
Groups
25. Explain the steps needed to run a script in SQL Developer
All
Combine
Hide data
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.
26. What does SQL stand for?
Structured Query Language
Twice
DICT_COLUMNS
STORAGE
27. The ALTER SESSION statement can change the session's...
Time zone
ADD
INNER JOIN
RUN SCRIPT
28. What do views do that makes them so useful for security?
When the table is small (unless your business rules require you too)
Hide data
Re-create
Surrogate
29. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
2000
+
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
DICTIONARY
30. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
4
UTC
Non-matching rows
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.
31. The same function can be used ______ in a SELECT statement.
Columns
MODIFY
Primary key/foreign key
Twice
32. The ROWID pseudocolumn is not an ________- but it acts like one.
4
Results
Actual column
UNION
33. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
ALL_OBJECTS
@ or START
DESC dict;
Has not changed the name
34. The ______ operator compares a list of values for equivalency
+
ADD
ANSI
ANY
35. In a view you can give a column a different name than it has in the...
Parent table
Another null
Crow's foot
X
36. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
All
Multiple rows
Equijoin and correlated subquery
Month ddth - yyyy
37. Users can only see changes made to a database once they have been...
Committed
RENAME just_two_more_weeks TO finally_i
Null
B-Tree Index
38. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
STORAGE
X
RENAME just_two_more_weeks TO finally_i
Equijoin
39. The COUNT function uses the __________ wildcard.
Asterisk
Implicit conversion
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
Static or dynamic
40. What is Oracle's most popular index storage structure?
Both MIN and MAX
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
B-Tree Index
Any
41. The ________ operator cannot compare against a list of values.
LIKE
MODIFY
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.
Leading-edge
42. The ____________ command makes changes permanent.
Has not changed the name
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ANSI
COMMIT
43. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
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
Business problems
FALSE
44. 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.
INNER JOIN
FALSE
ROLLBACK
Scale
45. Joins involving multiple columns must always follow the ____________ relationship path.
4000
ALL_OBJECTS
Primary key/foreign key
DROP INDEX need_to_pass_i
46. List the reasons that a subquery could not be unnested.
X
SUM
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
Self-joins
47. The using clause of the ANSI join syntax always assumes an...
Self-joins
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Equijoin and identical column names
Correlated
48. _________ rows are not allowed in the relational model.
UTC
DESC dict;
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
Orphan
49. What is the first column of a composite index called?
Leading-edge
Mathematical equations
CLOB
**** 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
50. SELECT * FROM instructor ORDER BY phone
DESC dict;
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.
A correct statement
Fractional seconds