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. Explain how Substitution Variables are used when writing scripts.
@ or START
CLOB
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.
99.99
2. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
CLOB
Location of the file
Combine
Parent table
3. A calculation with a null always yields...
Another null
Export Data
Black
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
4. The _______ operator determines common rows.
UNION operator
INTERSECT
CLOB
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.
5. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
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
Month ddth - yyyy
COMMIT
SELECT DISTINCT menu FROM restaurant
6. Converting a text literal to DATE format requires the use of the...
Columns
TO_CHAR function
Month ddth - yyyy
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
7. It is considered good form to put all SQL commands in...
Business problems
Testing functions
Static or dynamic
All caps
8. The TRUNC function on a date without a format model truncates the timestamp to...
Running a script file
UTC
12:00:00 A.M
Testing functions
9. What is the first column of a composite index called?
Leading-edge
Parent table
Any
All caps
10. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Orphan
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
ANSI
MINUS
11. You can use the ________________ to subtract months from a given date.
ADD_MONTHS function
Black
Results
Fractional seconds
12. You use the _________ keyword to add columns or constraints to a table.
FALSE
Equijoin and identical column names
X
ADD
13. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Structured Query Language
Script
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
CLOB
14. 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
UNION operator
Details
Orphan
15. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scale
Surrogate
Month ddth - yyyy
Mathematical equations
16. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
X
RENAME just_two_more_weeks TO finally_i
VALUES clause of an INSERT statement
Correlated
17. 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
18. The _______ function adds values together for a group of rows.
GROUP BY
SUM
Retrieve
DICTIONARY
19. To equijoin a table with another table involves matching the...
Details
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
Common column value
Equijoin and correlated subquery
20. You use the __________ keyword to change characteristics of a column.
Recursive
Any
MODIFY
All
21. Dynamic views begin with a ___________.
Surrogate key
V$
Scale
F12
22. Subqueries can return...
Multiple rows
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.
Hide data
Equijoin and correlated subquery
23. 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
Script
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
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
24. In a view you can give a column a different name than it has in the...
All caps
Parent table
DICTIONARY
Implicit conversion
25. Write a statement for SQL*Plus that shows the dictionary.
Semicolon or forward slash
DESC dict;
BETWEEN
BETWEEN
26. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
F12
Fractional seconds
GROUP BY
27. What are the main components of a ROWID?
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.
Equijoin and correlated subquery
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Command returns the number of records returned by a query.
28. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
RUN SCRIPT
Columns
ALL_OBJECTS
COMMIT
29. What is the data type you can use if you need an unlimited number of textual characters?
Surrogate key
CLOB
Scalar
Month ddth - yyyy
30. The RTRIM function is useful for eliminating ________ in a string.
Retrieve
Extra spaces
X
SET clause of an UPDATE statement
31. Information that is returned after you run your statement are found in the __________ tab in SQL Developer.
X
LENGTH
Results
Run scripts
32. The COUNT function is useful for determining whether a table has...
A correct statement
Data
Run scripts
DECODE
33. Write the syntax to rename index just_two_more_weeks_i to finally_i
ON
DICTIONARY
Time zone
RENAME just_two_more_weeks TO finally_i
34. The _______ function lets you perform if-then-else functionality with the SQL language.
X
DECODE
DESC dict;
Extra spaces
35. The using clause of the ANSI join syntax always assumes an...
GROUP BY
ADD_MONTHS function
Hide data
Equijoin and identical column names
36. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
LIKE
RENAME just_two_more_weeks TO finally_i
STORAGE
Multiple rows
37. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
DICT_COLUMNS
INNER JOIN
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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
38. Queries that are found in parentheses are done first - just as in the order of operations when doing...
Export Data
MINUS
Mathematical equations
Combine
39. Oracle uses the outer join operator to indicate that nulls are shown for...
Equijoin
Non-matching rows
Mathematical equations
Data
40. _________________ relationships are always optional relationships.
**** 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
Recursive
CLOB
RIGHT LEFT JOIN
41. LINESIZE
Retrieve
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
DICT_COLUMNS
Any
42. What does the following function return? SELECT LENGTH(NULL) - FROM dual
Null
Actual column
Has not changed the name
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.
43. Write a statement that drops the index need_to_pass_i
Running a script file
DROP INDEX need_to_pass_i
2000
X
44. Joins involving multiple columns must always follow the ____________ relationship path.
SET clause of an UPDATE statement
Primary key/foreign key
DESC dict;
Orphan
45. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
Fractional seconds
UNION operator
Structured Query Language
Data
46. Explain the steps needed to run a script in SQL Developer
Same
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.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
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.
47. Explain in detail the impact of INDEXES and how they are used by Oracle.
When the table is small (unless your business rules require you too)
+
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.
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
48. In SQL Developer field names and table names are shown in the color _______.
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
IN ANY ALL SOME
Default is 14; when you use the default - you repeat the heading every 14 rows.
Black
49. Checks whether any value in the list makes the condition true.
Semicolon or forward slash
Any
+
Leading-edge
50. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Scale
ROLLBACK
Black
Location of the file