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 what is found in the All Objects report folder in SQL Developer
Surrogate
VALUES clause of an INSERT statement
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.
2. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
User-defined reports
All
DD-MON-YY
Inconsistencies
3. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Optional
MODIFY
999999.9999
DICTIONARY
4. 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.
999999.9999
2000
FALSE
Results
5. List the different types of data dictionary views.
Both MIN and MAX
Optional
USER_ - ALL_ - DBA_ - and V$
Scalar
6. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
KEEP INDEX
Common column value
V$
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
7. Explain in detail the impact of INDEXES and how they are used by Oracle.
MINUS
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 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.
Multiple rows
8. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Retrieve
Three
All
ON
9. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
Running a script file
SET clause of an UPDATE statement
RUN SCRIPT
Black
10. 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
MINUS
When the table is small (unless your business rules require you too)
Re-create
11. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
Structured Query Language
Location of the file
+
**** 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
12. The _______ operator determines common rows.
INTERSECT
All caps
**** 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
Correlated
13. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
Re-create
MODIFY
The way NULL values are treated
14. In a view you can give a column a different name than it has in the...
Parent table
Re-create
INTERSECT
B-Tree Index
15. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Same
Extra spaces
Leading-edge
ON
16. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
Details
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
B-Tree Index
Multiple rows
17. What is the keyboard shortcut for the ROLLBACK command?
DESC dict;
F12
X
All
18. The COUNT function uses the __________ wildcard.
MINUS
Asterisk
Twice
LIKE
19. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
DICTIONARY
IN ANY ALL SOME
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.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
20. Which format mask displays December 31st - 1999?
SELECT DISTINCT menu FROM restaurant
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Month ddth - yyyy
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
21. _________________ relationships are always optional relationships.
Recursive
BETWEEN
The way NULL values are treated
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
22. Joins involving multiple columns must always follow the ____________ relationship path.
A correct statement
Primary key/foreign key
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Business problems
23. What is the main difference between the NOT EXISTS and the NOT IN operators?
The way NULL values are treated
User-defined reports
MINUS
ADD_MONTHS function
24. 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.
FALSE
LENGTH
VALUES
SELECT DISTINCT menu FROM restaurant
25. 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
All
Null
User-defined reports
26. Write the syntax to rename index just_two_more_weeks_i to finally_i
RENAME just_two_more_weeks TO finally_i
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Surrogate
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
27. A calculation with a null always yields...
Scale
DESC dict;
Another null
4000
28. You use the __________ keyword to change characteristics of a column.
RUN SCRIPT
MODIFY
Running a script file
Null
29. Write a statement for SQL*Plus that shows the dictionary.
ANSI
DESC dict;
X
Groups
30. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Testing functions
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.
Combine
X
31. LINESIZE
IN ANY ALL SOME
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
ON
32. To place a line comment in your SQL statements - you first place a // at the beginning of the line.
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.
FALSE
@ or START
Has not changed the name
33. ___________ subqueries allow you to reference columns from the outer query and execute the inner query repeatedly
Precision
Correlated
Any
Implicit conversion
34. The ____________ command makes changes permanent.
KEEP INDEX
Groups
COMMIT
User-defined reports
35. The time zone displacement value indicates the time difference from _______.
Asterisk
Scale
UTC
TO_CHAR function
36. The focus of the logical data model is _____________
UNION operator
Business problems
Default is 14; when you use the default - you repeat the heading every 14 rows.
Primary key/foreign key
37. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
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
999999.9999
Running a script file
38. A transaction is a...
Logical unit of work
VALUES
Mathematical equations
Testing functions
39. The term ____________ ___________ is used to express a join that satisfies the join condition.
VALUES
INNER JOIN
GROUP BY
Structured Query Language
40. The ______ operator compares a list of values for equivalency
ANY
Null
RIGHT LEFT JOIN
Black
41. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
B-Tree Index
DD-MON-YY
MODIFY
ROLLBACK
42. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Asterisk
Scale
VALUES clause of an INSERT statement
LENGTH
43. Explain the steps needed to run a script in SQL Developer
LENGTH
User-defined reports
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.
44. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Fractional seconds
BETWEEN
LENGTH
X
45. You can pass parameters from the operating system when ___________ in SQl*Plus
V$
Implicit conversion
Running a script file
FALSE
46. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
F12
Primary key/foreign key
Surrogate
Fractional seconds
47. The key that most database designers prefer and is chosen by the system is the _____________ key.
ROLLBACK
When the table is small (unless your business rules require you too)
CLOB
Surrogate
48. Another name for a data dictionary view is __________________ or _________________.
LENGTH
SUM
Static or dynamic
VALUES clause of an INSERT statement
49. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
Non-matching rows
Columns
Three
50. It is considered good form to put all SQL commands in...
All caps
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
Multiple rows