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. When using the data NUMBER(10 -4) there will be _______ digits following the decimal point.
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
ANSI
Orphan
4
2. The ____________ command makes changes permanent.
Common column value
RENAME just_two_more_weeks TO finally_i
SUM
COMMIT
3. 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.
12:00:00 A.M
LIKE
RIGHT LEFT JOIN
NATURAL JOIN
4. The query retrieves more than 5 to 15 percent of the rows
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Surrogate
12:00:00 A.M
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
5. In a view you can give a column a different name than it has in the...
Command returns the number of records returned by a query.
Testing functions
Extra spaces
Parent table
6. _________ rows are not allowed in the relational model.
Orphan
Same
Groups
All
7. The ___________ operator tests whether a matching row cannot be found.
The way NULL values are treated
UTC
Export Data
X
8. What is the name of the key automatically generated from a sequence?
Parent table
V$
Equijoin and identical column names
Surrogate key
9. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
Scalar
Scale
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
ADD_MONTHS function
10. The ALTER SESSION statement can change the session's...
Scale
V$
Time zone
Hide data
11. You can pass parameters from the operating system when ___________ in SQl*Plus
When the table is small (unless your business rules require you too)
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.
Running a script file
Asterisk
12. 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.
RIGHT LEFT JOIN
DICT_COLUMNS
INTERSECT
Has not changed the name
13. _________ and __________ functions are opposites of each other and provide a value in a group of rows.
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
BETWEEN
Both MIN and MAX
Mathematical equations
14. Explain what is found in the All Objects report folder in SQL Developer
Columns
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Rounded edges
15. Checks whether any value in the list makes the condition true.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Committed
Any
SUM
16. Write a statement that drops the index need_to_pass_i
DROP INDEX need_to_pass_i
IN ANY ALL SOME
Crow's foot
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
17. The key that most database designers prefer and is chosen by the system is the _____________ key.
GROUP BY
@ or START
Nested
Surrogate
18. When column names on the tables are different - you use the ______ condition.
V$
ON
Committed
Twice
19. Users can only see changes made to a database once they have been...
2000
KEEP INDEX
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
Committed
20. The ________ operator cannot compare against a list of values.
Equijoin and identical column names
UTC
LIKE
Orphan
21. List 6 Table-Related Menu Choices
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
TO_CHAR function
DECODE
22. Self-joins are useful for performing comparisons and checking for ___________ in data.
Crow's foot
Rounded edges
Retrieve
Inconsistencies
23. The TRUNC function on a date without a format model truncates the timestamp to...
Hide data
IN ANY ALL SOME
12:00:00 A.M
VALUES
24. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
Hide data
Columns
Combine
25. What does SQL stand for?
Details
ANSI
Structured Query Language
When the table is small (unless your business rules require you too)
26. _________________ relationships are always optional relationships.
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
SELECT SYSDATE+1/96 - FROM dual
Recursive
ON
27. What is the first column of a composite index called?
Leading-edge
NATURAL JOIN
Retrieve
Parent table
28. To equijoin a table with another table involves matching the...
Common column value
GROUP BY
Testing functions
FALSE
29. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
X
Semicolon or forward slash
USER_ - ALL_ - DBA_ - and V$
Logical unit of work
30. __________________ inserts the current date and time.
BETWEEN
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
RIGHT LEFT JOIN
SYSDATE
31. When writing the syntax for finding information on three or more tables - the parenthesis around the ON clause is...
F12
Optional
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.
ADD
32. The COUNT function is useful for determining whether a table has...
99.99
4
Data
MODIFY
33. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
Null
RENAME - COPY - DROP - TRUNCATE - LOCK - & COMMENT
Equijoin
BETWEEN
34. Joins involving multiple columns must always follow the ____________ relationship path.
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
Equijoin and identical column names
SYSDATE
Primary key/foreign key
35. If a graphical representation of a table's box has __________ it means that the relationship is identifying.
RUN SCRIPT
ALL_OBJECTS
Rounded edges
Testing functions
36. When using the following data: NUMBER(10 -4) - the # 10 is called the __________.
DD-MON-YY
Groups
COMMIT
Precision
37. SELECT LIST of a subquery in an INSERT statement
Running a script file
SET clause of an UPDATE statement
Self-joins
FALSE
38. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
X
ROLLBACK
KEEP INDEX
Correlated
39. FEEDBACK
Command returns the number of records returned by a query.
Static or dynamic
DROP INDEX need_to_pass_i
DICTIONARY
40. The ____________ clause on a CREATE TABLE statement can specify how much space to allocate.
Rounded edges
STORAGE
Has not changed the name
Combine
41. List the steps performed by a correlated subquery.
**** 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
Surrogate
SELECT SYSDATE+1/96 - FROM dual
12:00:00 A.M
42. The data type definitions NUMBER(10) and NUMBER(10 -0) are the...
Run scripts
Same
F12
Mathematical equations
43. Write a statement for SQL*Plus that shows the dictionary.
DESC dict;
INTERSECT
Testing functions
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
44. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
IN ANY ALL SOME
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
DD-MON-YY
UTC
45. What is the most common DATE format found in SQL?
+
LENGTH
Groups
DD-MON-YY
46. Explain why constraints are used when building tables.
47. What is the data type you can use if you need an unlimited number of textual characters?
ANSI
Results
CLOB
4
48. Checks whether any value in the list makes the condition true.
Logical unit of work
All
Any
VALUES
49. SELECT * FROM instructor ORDER BY phone
X
NATURAL JOIN
Scalar
A correct statement
50. Write a solution that adds 20 minutes to a given date.
MINUS
SELECT SYSDATE+1/96 - FROM dual
Running a script file
KEEP INDEX