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 does SQL stand for?
Groups
Structured Query Language
GROUP BY
DICTIONARY
2. In SQL Developer field names and table names are shown in the color _______.
@ or START
BETWEEN
4
Black
3. What is the data type you can use if you need an unlimited number of textual characters?
Combine
IN ANY ALL SOME
CLOB
LENGTH
4. 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
5. The _______ function lets you perform if-then-else functionality with the SQL language.
Same
DECODE
Multiple rows
A correct statement
6. Explain in detail the impact of INDEXES and how they are used by Oracle.
Recursive
2000
UNION
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
7. Explain how the SPOOL command is used and what program it can be used in.
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
SET clause of an UPDATE statement
RENAME just_two_more_weeks TO finally_i
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
8. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
GROUP BY
Surrogate key
Optional
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.
9. The DUAL table can be used for...
Surrogate
Export Data
User-defined reports
Testing functions
10. Dynamic views begin with a ___________.
V$
SET clause of an UPDATE statement
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
11. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
ROLLBACK
INTERSECT
Equijoin and correlated subquery
User-defined reports
12. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Same
Rounded edges
Semicolon or forward slash
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
13. The __________ operator is inclusive of the two values specified.
BETWEEN
Non-matching 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
USER_ - ALL_ - DBA_ - and V$
14. __________________ inserts the current date and time.
SYSDATE
LENGTH
RUN SCRIPT
Crow's foot
15. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
BETWEEN
**** 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
GROUP BY
INTERSECT
16. What is the most common DATE format found in SQL?
DD-MON-YY
Command returns the number of records returned by a query.
Crow's foot
INNER JOIN
17. Which operator is most commonly used?
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.
Surrogate key
UNION
When the table is small (unless your business rules require you too)
18. 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.
INTERSECT
FALSE
All
CLOB
19. You can use the ________________ to subtract months from a given date.
Script
Structured Query Language
ADD_MONTHS function
DROP INDEX need_to_pass_i
20. What is the keyboard shortcut for the ROLLBACK command?
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
F12
Month ddth - yyyy
Fractional seconds
21. Checks whether any value in the list makes the condition true.
ANSI
Any
Crow's foot
Groups
22. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
MODIFY
Any
999999.9999
UNION operator
23. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
IN ANY ALL SOME
Static or dynamic
Precision
Black
24. The using clause of the ANSI join syntax always assumes an...
Equijoin and identical column names
RIGHT LEFT JOIN
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
MINUS
25. The query retrieves more than 5 to 15 percent of the rows
BETWEEN
Mathematical equations
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Export Data
26. SELECT * FROM instructor ORDER BY phone
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
A correct statement
ADD_MONTHS function
Actual column
27. LINESIZE
F12
NATURAL JOIN
MINUS
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
28. Subqueries can return...
SELECT SYSDATE+1/96 - FROM dual
DICT_COLUMNS
Multiple rows
Primary key/foreign key
29. You can pass parameters from the operating system when ___________ in SQl*Plus
NATURAL JOIN
Re-create
Month ddth - yyyy
Running a script file
30. SQL*Plus is used more than SQL Developer when you need to...
SUM
Run scripts
Has not changed the name
SET clause of an UPDATE statement
31. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
Orphan
KEEP INDEX
Data
32. To equijoin a table with another table involves matching the...
SELECT SYSDATE+1/96 - FROM dual
Common column value
Equijoin and identical column names
Columns
33. Users can only see changes made to a database once they have been...
X
Non-matching rows
Committed
Actual column
34. A calculation with a null always yields...
All caps
X
Another null
VALUES
35. The ROWID pseudocolumn is not an ________- but it acts like one.
ANY
Twice
Actual column
Committed
36. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
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
BETWEEN
SELECT DISTINCT menu FROM restaurant
Equijoin
37. The key that most database designers prefer and is chosen by the system is the _____________ key.
SELECT SYSDATE+1/96 - FROM dual
Surrogate
Semicolon or forward slash
Self-joins
38. The focus of the logical data model is _____________
ROLLBACK
DICTIONARY
VALUES clause of an INSERT statement
Business problems
39. What are the main components of a ROWID?
Black
TO_CHAR function
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.
Retrieve
40. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Equijoin
Inconsistencies
INNER JOIN
Leading-edge
41. Explicit data type conversion is preferable to Oracle's...
Leading-edge
Implicit conversion
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ON
42. What is the tab in SQL Developer where data dictionary view information can be found?
DICT_COLUMNS
Twice
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Details
43. The ___________ operator tests whether a matching row cannot be found.
Scalar
V$
X
ADD
44. Explain what is found in the All Objects report folder in SQL Developer
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
MODIFY
SYSDATE
999999.9999
45. Another name for a data dictionary view is __________________ or _________________.
BETWEEN
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
Semicolon or forward slash
Static or dynamic
46. Explain what a static data dictionary view is and how it is used
Run scripts
Running a script file
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.
IN ANY ALL SOME
47. What is the name of the key automatically generated from a sequence?
Surrogate key
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.
Details
Has not changed the name
48. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
ROLLBACK
ON
X
SELECT DISTINCT menu FROM restaurant
49. You use the __________ keyword to change characteristics of a column.
X
Rounded edges
MODIFY
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
50. The ________ operator cannot compare against a list of values.
LIKE
2000
Self-joins
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.