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. What is the most common DATE format found in SQL?
RENAME just_two_more_weeks TO finally_i
X
999999.9999
DD-MON-YY
2. The same function can be used ______ in a SELECT statement.
DESC dict;
FALSE
Logical unit of work
Twice
3. The term ____________ ___________ is used to express a join that satisfies the join condition.
Export Data
Equijoin and identical column names
INNER JOIN
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.
4. What is the maximum value for a column defined as NUMBER(4 -2)?
When the table is small (unless your business rules require you too)
BETWEEN
99.99
All
5. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
Equijoin and correlated subquery
Recursive
Crow's foot
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
6. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
Equijoin and correlated subquery
INNER JOIN
FALSE
7. When you run a script in SQL*Plus you must give the...
Location of the file
X
Common column value
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
8. SELECT * FROM instructor ORDER BY phone
Static or dynamic
A correct statement
Precision
UNION operator
9. You use the _________ keyword to add columns or constraints to a table.
Mathematical equations
ADD
X
RENAME just_two_more_weeks TO finally_i
10. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
X
LENGTH
Location of the file
SELECT DISTINCT menu FROM restaurant
11. The focus of the logical data model is _____________
COMMIT
Three
INNER JOIN
Business problems
12. What is the main difference between the NOT EXISTS and the NOT IN operators?
Precision
RENAME just_two_more_weeks TO finally_i
The way NULL values are treated
X
13. Write a statement for SQL*Plus that shows the dictionary.
Non-matching rows
DESC dict;
Precision
Fractional seconds
14. The time zone displacement value indicates the time difference from _______.
MODIFY
UNION
UTC
Time zone
15. What is the data type you can use if you need an unlimited number of textual characters?
F12
CLOB
Testing functions
2000
16. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Testing functions
Correlated
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.
FALSE
17. Dynamic views begin with a ___________.
When the table is small (unless your business rules require you too)
V$
X
RIGHT LEFT JOIN
18. To restart a sequence at a lower number - you can drop and ________ the sequence.
Recursive
Actual column
Equijoin and identical column names
Re-create
19. 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
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.
Black
SUM
20. How many characters can be stored in the CHAR column/field?
X
2000
ADD_MONTHS function
Common column value
21. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
RIGHT LEFT JOIN
Running a script file
+
SET clause of an UPDATE statement
22. Write the syntax to rename index just_two_more_weeks_i to finally_i
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.
RENAME just_two_more_weeks TO finally_i
Precision
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
23. To join four tables - you must have at least _____ join conditions.
Month ddth - yyyy
SELECT DISTINCT menu FROM restaurant
Time zone
Three
24. The purpose of the HAVING clause is to eliminate___________.
Combine
Black
Nested
Groups
25. Joins involving multiple columns must always follow the ____________ relationship path.
Details
Optional
Columns
Primary key/foreign key
26. 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
27. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Committed
Both MIN and MAX
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.
X
28. The ROWID pseudocolumn is not an ________- but it acts like one.
F12
Actual column
Scalar
Default is 14; when you use the default - you repeat the heading every 14 rows.
29. 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.
A correct statement
RIGHT LEFT JOIN
Run scripts
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.
30. It is considered good form to put all SQL commands in...
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
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Another null
All caps
31. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
ALL_OBJECTS
Asterisk
@ or START
32. You can pass parameters from the operating system when ___________ in SQl*Plus
ANY
Running a script file
ANSI
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
33. 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.
FALSE
INTERSECT
Three
F12
34. SELECT LIST of a subquery in an INSERT statement
Any
ROLLBACK
SET clause of an UPDATE statement
Extra spaces
35. How many characters can you have using the VARCHAR data type?
Details
The way NULL values are treated
4000
All
36. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
NATURAL JOIN
MINUS
RENAME just_two_more_weeks TO finally_i
37. List the reasons that a subquery could not be unnested.
X
+
Business problems
SET clause of an UPDATE statement
38. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
DESC dict;
Equijoin
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
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
39. List 4 aggregate functions
Mathematical equations
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Hide data
Semicolon or forward slash
40. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Multiple rows
Inconsistencies
Fractional seconds
RUN SCRIPT
41. What are the main components of a ROWID?
Actual column
Any
LENGTH
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.
42. When column names on the tables are different - you use the ______ condition.
STORAGE
Surrogate
Script
ON
43. A _________ subquery returns a single column with a single row
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
Scalar
X
Equijoin and identical column names
44. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
ROLLBACK
Three
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
FALSE
45. The RTRIM function is useful for eliminating ________ in a string.
Self-joins
Black
RIGHT LEFT JOIN
Extra spaces
46. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
@ or START
Export Data
Multiple rows
Implicit conversion
47. Explain how the SPOOL command is used and what program it can be used in.
SELECT DISTINCT menu FROM restaurant
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
X
Crow's foot
48. 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
49. What do views do that makes them so useful for security?
UNION operator
Hide data
UNION
4000
50. Users can only see changes made to a database once they have been...
Mathematical equations
Committed
KEEP INDEX
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.