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. The TRUNC function on a date without a format model truncates the timestamp to...
Asterisk
DD-MON-YY
12:00:00 A.M
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.
2. The focus of the logical data model is _____________
Business problems
Has not changed the name
Equijoin and identical column names
SELECT DISTINCT menu FROM restaurant
3. Explain the steps needed to run a script in SQL Developer
Combine
Self-joins
Results
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.
4. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
LENGTH
Optional
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
MODIFY
5. Explain how you can optimize your queries with subqueries and the main advantage of doing so.
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
When the table is small (unless your business rules require you too)
ANSI
Self-joins
6. The ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
MINUS
Structured Query Language
Command returns the number of records returned by a query.
Fractional seconds
7. List the different types of data dictionary views.
MODIFY
Fractional seconds
B-Tree Index
USER_ - ALL_ - DBA_ - and V$
8. Another name for a data dictionary view is __________________ or _________________.
SYSDATE
Precision
Static or dynamic
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.
9. Users can only see changes made to a database once they have been...
Structured Query Language
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
IN ANY ALL SOME
Committed
10. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
All caps
Rounded edges
X
VALUES clause of an INSERT statement
11. Write a solution that adds 20 minutes to a given date.
STORAGE
Recursive
SELECT SYSDATE+1/96 - FROM dual
2000
12. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Testing functions
DD-MON-YY
Same
TO_CHAR function
13. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Same
Scale
SELECT SYSDATE+1/96 - FROM dual
KEEP INDEX
14. The using clause of the ANSI join syntax always assumes an...
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
**** 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
Equijoin and identical column names
Orphan
15. The _______ function adds values together for a group of rows.
COMMIT
User-defined reports
Multiple rows
SUM
16. 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.
Testing functions
Precision
FALSE
LIKE
17. Subqueries can return...
Multiple rows
B-Tree Index
ADD
UTC
18. What is the name of the key automatically generated from a sequence?
UNION operator
UTC
X
Surrogate key
19. The ALTER SESSION statement can change the session's...
Location of the file
DECODE
Time zone
Multiple rows
20. ____________ are useful for analyzing and exploring the relationships within your data
Self-joins
STORAGE
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
DECODE
21. The key that most database designers prefer and is chosen by the system is the _____________ key.
B-Tree Index
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
Surrogate
USER_ - ALL_ - DBA_ - and V$
22. What does SQL stand for?
Running a script file
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
Structured Query Language
B-Tree Index
23. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
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.
Multiple rows
Any
Export Data
24. The ____________ keywords and the USING clause of the ANSI join syntax are mutually exclusive.
All caps
NATURAL JOIN
Committed
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
25. The ________ operator cannot compare against a list of values.
DECODE
+
LIKE
Asterisk
26. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Combine
Results
SELECT SYSDATE+1/96 - FROM dual
Export Data
27. Explain what is found in the All Objects report folder in SQL Developer
Has not changed the name
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Equijoin and identical column names
ANSI
28. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
FALSE
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
USER_ - ALL_ - DBA_ - and V$
SELECT DISTINCT menu FROM restaurant
29. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Parent table
STORAGE
Multiple rows
Asterisk
30. 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.
V$
Equijoin
ANSI
VALUES
31. It is always good practice to include the old values in the WHERE clause of UPDATE to ensure that another session or user _________________ in the meantime.
BETWEEN
Actual column
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.
Has not changed the name
32. List 6 Table-Related Menu Choices
Static or dynamic
BETWEEN
2000
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
33. The query retrieves more than 5 to 15 percent of the rows
Null
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Parent table
KEEP INDEX
34. In SQL Developer field names and table names are shown in the color _______.
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Black
LENGTH
COMMIT
35. List the reasons that a subquery could not be unnested.
4
Static or dynamic
X
Primary key/foreign key
36. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
ANSI
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Retrieve
Implicit conversion
37. The term ____________ ___________ is used to express a join that satisfies the join condition.
INNER JOIN
SELECT SYSDATE+1/96 - FROM dual
When the table is small (unless your business rules require you too)
Has not changed the name
38. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
UNION
Precision
Semicolon or forward slash
B-Tree Index
39. What is the most common DATE format found in SQL?
ADD_MONTHS function
Month ddth - yyyy
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
DD-MON-YY
40. List 4 aggregate functions
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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.
Command returns the number of records returned by a query.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
41. You can pass parameters from the operating system when ___________ in SQl*Plus
NATURAL JOIN
Running a script file
Common column value
Optional
42. SQL*Plus is used more than SQL Developer when you need to...
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
Equijoin
Run scripts
KEEP INDEX
43. Which format mask displays December 31st - 1999?
Non-matching rows
Three
Month ddth - yyyy
DICT_COLUMNS
44. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
Logical unit of work
ROLLBACK
Hide data
DROP INDEX need_to_pass_i
45. 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
Details
INTERSECT
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.
46. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
ADD
BETWEEN
Fractional seconds
B-Tree Index
47. What is the data type you can use if you need an unlimited number of textual characters?
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
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.
ON
CLOB
48. 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.
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.
RIGHT LEFT JOIN
ROLLBACK
Location of the file
49. A join across three tables can be expressed with the ________ join syntax.
ANSI
UNION operator
Columns
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
50. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
+
SELECT DISTINCT menu FROM restaurant
Asterisk
Columns