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. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
Structured Query Language
Results
TO_CHAR function
Same
2. A join across three tables can be expressed with the ________ join syntax.
Equijoin and correlated subquery
Logical unit of work
Groups
ANSI
3. What is the maximum value for a column defined as NUMBER(4 -2)?
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.
Equijoin and correlated subquery
ADD_MONTHS function
99.99
4. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
The way NULL values are treated
MINUS
LENGTH
Same
5. To equijoin a table with another table involves matching the...
Common column value
Nested
Primary key/foreign key
All
6. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Three
VALUES
Surrogate key
User-defined reports
7. The same function can be used ______ in a SELECT statement.
Twice
SUM
99.99
The way NULL values are treated
8. List 6 Table-Related Menu Choices
UNION operator
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Null
Results
9. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
KEEP INDEX
Combine
Committed
+
10. How many characters can be stored in the CHAR column/field?
ALL_OBJECTS
2000
The way NULL values are treated
Running a script file
11. How many characters can you have using the VARCHAR data type?
4000
DD-MON-YY
B-Tree Index
Running a script file
12. SELECT LIST of a subquery in an INSERT statement
99.99
Another null
Equijoin and correlated subquery
SET clause of an UPDATE statement
13. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Equijoin and identical column names
VALUES clause of an INSERT statement
Mathematical equations
99.99
14. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
Static or dynamic
Rounded edges
Both MIN and MAX
VALUES clause of an INSERT statement
15. The focus of the logical data model is _____________
Mathematical equations
4
All caps
Business problems
16. What is the name of the key automatically generated from a sequence?
BETWEEN
Committed
Surrogate key
VALUES
17. When column names on the tables are different - you use the ______ condition.
DICTIONARY
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Semicolon or forward slash
ON
18. Write the syntax to rename index just_two_more_weeks_i to finally_i
DICTIONARY
STORAGE
RENAME just_two_more_weeks TO finally_i
RUN SCRIPT
19. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
SUM
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.
IN ANY ALL SOME
20. When is it not a good idea to use an index?
When the table is small (unless your business rules require you too)
12:00:00 A.M
ALL_OBJECTS
Structured Query Language
21. In SQL Developer field names and table names are shown in the color _______.
B-Tree Index
Rounded edges
Black
Another null
22. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
MODIFY
NATURAL JOIN
BETWEEN
Re-create
23. LINESIZE
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ADD_MONTHS function
Committed
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
24. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
NATURAL JOIN
2000
MINUS
25. Match each of the SQL commands on the left with a verb from the list.
ANY
F12
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
@ or START
26. PAGESIZE
Correlated
X
Default is 14; when you use the default - you repeat the heading every 14 rows.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
27. NUMBER functions can be...
UNION operator
MINUS
ROLLBACK
Nested
28. It is considered good form to put all SQL commands in...
Multiple rows
All caps
Inconsistencies
DD-MON-YY
29. What is the most common DATE format found in SQL?
DD-MON-YY
SELECT DISTINCT menu FROM restaurant
Surrogate
Fractional seconds
30. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Non-matching rows
IN ANY ALL SOME
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
Script
31. 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
DECODE
GROUP BY
MODIFY
32. 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
33. The key that most database designers prefer and is chosen by the system is the _____________ key.
Hide data
Mathematical equations
Surrogate
Same
34. Explain what is found in the All Objects report folder in SQL Developer
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Parent table
DECODE
35. You can use the ________________ to subtract months from a given date.
Hide data
Equijoin and identical column names
BETWEEN
ADD_MONTHS function
36. In a view you can give a column a different name than it has in the...
Details
SUM
Inconsistencies
Parent table
37. The _______ function lets you perform if-then-else functionality with the SQL language.
DECODE
Script
Run scripts
VALUES
38. The query retrieves more than 5 to 15 percent of the rows
**** 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
Scalar
VALUES
The indexed column is part of an expression. In this case - consider creating a function-based index instead
39. The _______ function adds values together for a group of rows.
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
**** 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
SELECT SYSDATE+1/96 - FROM dual
SUM
40. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
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.
Scale
VALUES clause of an INSERT statement
Semicolon or forward slash
41. You can pass parameters from the operating system when ___________ in SQl*Plus
All
Scale
Running a script file
999999.9999
42. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
F12
TO_CHAR function
999999.9999
KEEP INDEX
43. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
STORAGE
SELECT DISTINCT menu FROM restaurant
Location of the file
Fractional seconds
44. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Multiple rows
TO_CHAR function
Command returns the number of records returned by a query.
X
45. The ROWID pseudocolumn is not an ________- but it acts like one.
Orphan
Command returns the number of records returned by a query.
MINUS
Actual column
46. What is the keyboard shortcut for the ROLLBACK command?
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.
Business problems
Extra spaces
F12
47. SELECT * FROM instructor ORDER BY phone
Testing functions
A correct statement
FALSE
+
48. The purpose of the HAVING clause is to eliminate___________.
Groups
MINUS
Primary key/foreign key
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
49. __________________ inserts the current date and time.
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
Hide data
SYSDATE
Data
50. What is the first column of a composite index called?
SUM
2000
MODIFY
Leading-edge