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. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
VALUES
VALUES clause of an INSERT statement
Semicolon or forward slash
SELECT DISTINCT menu FROM restaurant
2. SQL*Plus is used more than SQL Developer when you need to...
Semicolon or forward slash
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
Run scripts
Asterisk
3. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
Another null
Static or dynamic
DESC dict;
4. UNION ALL does not sort - therefore it is less time consuming to use than the...
Recursive
Data
UNION operator
BETWEEN
5. What is the keyboard shortcut for the ROLLBACK command?
Results
FALSE
F12
Surrogate
6. The purpose of the HAVING clause is to eliminate___________.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
LENGTH
Structured Query Language
Groups
7. Checks whether any value in the list makes the condition true.
Running a script file
X
Any
A correct statement
8. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
FALSE
Columns
NATURAL JOIN
Combine
9. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
Details
LIKE
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
IN ANY ALL SOME
10. The TRUNC function on a date without a format model truncates the timestamp to...
Black
ANSI
12:00:00 A.M
X
11. Explain what is found in the All Objects report folder in SQL Developer
UNION
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
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.
F12
12. Explain the steps needed to run a script in SQL Developer
Primary key/foreign key
Default is 14; when you use the default - you repeat the heading every 14 rows.
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.
Re-create
13. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
Asterisk
X
Precision
14. The _______ operator determines common rows.
INTERSECT
X
RUN SCRIPT
Extra spaces
15. A calculation with a null always yields...
DD-MON-YY
DECODE
Scalar
Another null
16. The same function can be used ______ in a SELECT statement.
Surrogate key
LENGTH
Twice
Common column value
17. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Columns
Committed
999999.9999
18. Explain why constraints are used when building tables.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
19. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Mathematical equations
Month ddth - yyyy
Common column value
Precision
20. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Implicit conversion
Default is 14; when you use the default - you repeat the heading every 14 rows.
Rounded edges
UNION
21. The COUNT function is useful for determining whether a table has...
Data
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 indexed column is part of an expression. In this case - consider creating a function-based index instead
Results
22. A join across three tables can be expressed with the ________ join syntax.
X
ANSI
X
Primary key/foreign key
23. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Semicolon or forward slash
User-defined reports
Correlated
X
24. How many characters can you have using the VARCHAR data type?
Surrogate key
4000
DD-MON-YY
2000
25. PAGESIZE
Default is 14; when you use the default - you repeat the heading every 14 rows.
USER_ - ALL_ - DBA_ - and V$
F12
4000
26. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
Twice
All caps
MINUS
27. When you want to run a script in either SQL*Plus or SQL Developer - you can use a ______ or the _________ command.
ON
Self-joins
ADD_MONTHS function
@ or START
28. NUMBER functions can be...
Null
LIKE
Nested
MODIFY
29. Explain in detail the impact of INDEXES and how they are used by Oracle.
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
X
Data
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.
30. The _______ function adds values together for a group of rows.
Surrogate
SUM
Data
Parent table
31. What is Oracle's most popular index storage structure?
999999.9999
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
B-Tree Index
Data
32. Subqueries can return...
FALSE
Primary key/foreign key
Multiple rows
All
33. 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
SELECT DISTINCT menu FROM restaurant
ANY
Surrogate
34. Users can only see changes made to a database once they have been...
ANSI
BETWEEN
V$
Committed
35. The using clause of the ANSI join syntax always assumes an...
Columns
Equijoin and identical column names
Asterisk
Both MIN and MAX
36. 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
37. In a view you can give a column a different name than it has in the...
Same
USER_ - ALL_ - DBA_ - and V$
Parent table
Running a script file
38. How many characters can be stored in the CHAR column/field?
2000
+
Scale
All caps
39. The query retrieves more than 5 to 15 percent of the rows
Three
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Details
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
40. The ____________ command makes changes permanent.
Columns
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.
RUN SCRIPT
COMMIT
41. 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.
RIGHT LEFT JOIN
Optional
+
The indexed column is part of an expression. In this case - consider creating a function-based index instead
42. What is the maximum value for a column defined as NUMBER(4 -2)?
VALUES
A correct statement
99.99
Surrogate key
43. The ___________ operator tests whether a matching row cannot be found.
X
A correct statement
ADD_MONTHS function
999999.9999
44. List the steps performed by a correlated subquery.
DICTIONARY
**** 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
Static or dynamic
Location of the file
45. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Surrogate
Any
ALL_OBJECTS
Twice
46. What do views do that makes them so useful for security?
Hide data
4000
CLOB
The way NULL values are treated
47. List 4 aggregate functions
RENAME just_two_more_weeks TO finally_i
TO_CHAR function
Committed
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
48. _________________ relationships are always optional relationships.
Scale
Retrieve
+
Recursive
49. Write a solution that adds 20 minutes to a given date.
User-defined reports
Equijoin
SELECT SYSDATE+1/96 - FROM dual
Mathematical equations
50. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
When the table is small (unless your business rules require you too)
Equijoin and correlated subquery
ANSI
Surrogate