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 NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
VALUES clause of an INSERT statement
V$
Script
+
2. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Scale
Three
BETWEEN
X
3. Explain why constraints are used when building tables.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
4. The focus of the logical data model is _____________
Business problems
BETWEEN
KEEP INDEX
Optional
5. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
VALUES clause of an INSERT statement
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
Script
ALL_OBJECTS
6. Joins involving multiple columns must always follow the ____________ relationship path.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
@ or START
Primary key/foreign key
Precision
7. A transaction is a...
Default is 14; when you use the default - you repeat the heading every 14 rows.
FALSE
Orphan
Logical unit of work
8. The _______ function lets you perform if-then-else functionality with the SQL language.
Three
DECODE
MINUS
All caps
9. The _____________ clause determines how rows are grouped.
X
CLOB
Testing functions
GROUP BY
10. Converting a text literal to DATE format requires the use of the...
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Combine
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.
TO_CHAR function
11. The ___________ operator tests whether a matching row cannot be found.
Null
X
ADD_MONTHS function
MINUS
12. What are the main components of a ROWID?
Static or dynamic
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.
Structured Query Language
Testing functions
13. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
UNION
Logical unit of work
Scale
Has not changed the name
14. The TRUNC function on a date without a format model truncates the timestamp to...
Semicolon or forward slash
UNION operator
12:00:00 A.M
UTC
15. The term ____________ ___________ is used to express a join that satisfies the join condition.
SELECT DISTINCT menu FROM restaurant
INNER JOIN
DD-MON-YY
Equijoin
16. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
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.
DESC dict;
SYSDATE
17. How many characters can you have using the VARCHAR data type?
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
Mathematical equations
4000
Static or dynamic
18. Another name for a data dictionary view is __________________ or _________________.
Run scripts
Self-joins
Static or dynamic
B-Tree Index
19. LINESIZE
Results
RENAME just_two_more_weeks TO finally_i
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
LENGTH
20. What is the name of the view where you can find the collection of static and data dictionary tables and views - along with their descriptions?
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.
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
ANSI
DICTIONARY
21. Which format mask displays December 31st - 1999?
INTERSECT
SYSDATE
Month ddth - yyyy
Twice
22. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Details
VALUES
ADD_MONTHS function
23. The _______ operator determines common rows.
INTERSECT
+
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.
ROLLBACK
24. PAGESIZE
Results
SUM
VALUES
Default is 14; when you use the default - you repeat the heading every 14 rows.
25. 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.
Details
VALUES
Inconsistencies
RIGHT LEFT JOIN
26. To equijoin a table with another table involves matching the...
All
GROUP BY
Common column value
When the table is small (unless your business rules require you too)
27. The ROWID pseudocolumn is not an ________- but it acts like one.
Actual column
Primary key/foreign key
Groups
UTC
28. SELECT * FROM instructor ORDER BY phone
Self-joins
The indexed column is part of an expression. In this case - consider creating a function-based index instead
A correct statement
Default is 14; when you use the default - you repeat the heading every 14 rows.
29. The ________ operator cannot compare against a list of values.
Scalar
ADD
V$
LIKE
30. In a view you can give a column a different name than it has in the...
Parent table
@ or START
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.
Leading-edge
31. The TIMESTAMP WITH LOCAL TIME ZONE data type allows...
INNER JOIN
Fractional seconds
Scalar
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
32. To join four tables - you must have at least _____ join conditions.
Crow's foot
Has not changed the name
Three
KEEP INDEX
33. Which operator is most commonly used?
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.
UNION
Black
Groups
34. What is the name of the key automatically generated from a sequence?
LIKE
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Surrogate key
Black
35. Explain in detail the impact of INDEXES and how they are used by Oracle.
Any
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
All
ANSI
36. Explain how Dynamic SQL is used and give an example of a Dynamic SQL statement.
99.99
ON
When the table is small (unless your business rules require you too)
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
37. 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.
Equijoin and identical column names
Combine
Leading-edge
Has not changed the name
38. The key that most database designers prefer and is chosen by the system is the _____________ key.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
+
Surrogate
Precision
39. You use the __________ keyword to change characteristics of a column.
A correct statement
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
MODIFY
VALUES clause of an INSERT statement
40. 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.
UTC
Any
FALSE
ANY
41. When is it not a good idea to use an index?
Any
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.
SYSDATE
When the table is small (unless your business rules require you too)
42. What is Oracle's most popular index storage structure?
B-Tree Index
V$
Rounded edges
CLOB
43. Write a solution that adds 20 minutes to a given date.
The indexed column is part of an expression. In this case - consider creating a function-based index instead
SELECT SYSDATE+1/96 - FROM dual
Data
Committed
44. The time zone displacement value indicates the time difference from _______.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
Script
Semicolon or forward slash
UTC
45. _________ rows are not allowed in the relational model.
Script
Orphan
The indexed column is part of an expression. In this case - consider creating a function-based index instead
INTERSECT
46. What is the maximum value for a column defined as NUMBER(4 -2)?
TO_CHAR function
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
VALUES
99.99
47. What is the keyboard shortcut for the ROLLBACK command?
Structured Query Language
LENGTH
DICTIONARY
F12
48. The ALTER SESSION statement can change the session's...
RIGHT LEFT JOIN
Business problems
A correct statement
Time zone
49. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Rounded edges
Script
DICT_COLUMNS
Running a script file
50. How many characters can be stored in the CHAR column/field?
CLOB
Groups
Location of the file
2000