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. What is the syntax used to indicate that you are using the Oracle Outer Join operator?
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
LENGTH
+
Default is 14; when you use the default - you repeat the heading every 14 rows.
2. Another name for a data dictionary view is __________________ or _________________.
Running a script file
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.
Parent table
Static or dynamic
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 ________________ is a type of statement whereby you retrieve data that exists in one table - but not in another.
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
ROLLBACK
ADD
MINUS
5. SQL Developer's ____________________ option allows you to selectively export certain rows and columns.
Parent table
Export Data
Logical unit of work
RUN SCRIPT
6. List the steps performed by a correlated subquery.
DICT_COLUMNS
CLOB
BETWEEN
**** 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
7. Explain the steps needed to run a script in SQL Developer
Details
Static or dynamic
Time zone
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.
8. When using the following data: NUMBER(10 -4) - the # 4 is called the __________.
V$
MODIFY
Scale
IN ANY ALL SOME
9. Converting a text literal to DATE format requires the use of the...
TO_CHAR function
Orphan
Primary key/foreign key
Testing functions
10. When returning multiple rows - a subquery must contain the _____ - _____ - _____ - or ______ operator - otherwise Oracle will return an error
99.99
IN ANY ALL SOME
Parent table
999999.9999
11. The query retrieves more than 5 to 15 percent of the rows
Groups
The indexed column is part of an expression. In this case - consider creating a function-based index instead
Another null
Fractional seconds
12. The ___________ operator tests whether a matching row cannot be found.
FALSE
ROLLBACK
Command returns the number of records returned by a query.
X
13. Write a solution that adds 20 minutes to a given date.
SELECT SYSDATE+1/96 - FROM dual
+
Equijoin and identical column names
Twice
14. You use the _________ keyword to add columns or constraints to a table.
Surrogate
ADD
When the table is small (unless your business rules require you too)
ANY
15. When you have issued a DELETE command - you can still ________ those rows and restore the information.
SUM
Fractional seconds
Retrieve
Re-create
16. 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.
TO_CHAR function
Re-create
DESC dict;
17. Explain how Oracle treats locks when a database is being updated and needs to be viewed by other users.
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
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
Business problems
18. The COUNT function is useful for determining whether a table has...
Run scripts
RIGHT LEFT JOIN
B-Tree Index
Data
19. A transaction is a...
Structured Query Language
Logical unit of work
Null
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
20. The ________ operator cannot compare against a list of values.
X
LIKE
SET clause of an UPDATE statement
**** 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
21. SQL*Plus is used more than SQL Developer when you need to...
VALUES clause of an INSERT statement
Run scripts
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
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
22. In SQL Developer field names and table names are shown in the color _______.
Inconsistencies
All caps
Black
Correlated
23. What is the tab in SQL Developer where data dictionary view information can be found?
Details
ADD_MONTHS function
Semicolon or forward slash
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.
24. Write the syntax to rename index just_two_more_weeks_i to finally_i
Lists all objects accessible for the chosen database connection. Also lists a helpful dependencies report for accessing change impact.
Script
RENAME just_two_more_weeks TO finally_i
V$
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.
Any
Actual column
VALUES
RUN SCRIPT
26. SELECT * FROM instructor ORDER BY phone
MODIFY
A correct statement
X
Extra spaces
27. 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.
@ or START
Semicolon or forward slash
RIGHT LEFT JOIN
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
28. Dynamic views begin with a ___________.
RENAME just_two_more_weeks TO finally_i
LIKE
STORAGE
V$
29. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
IN ANY ALL SOME
Equijoin
Orphan
Rounded edges
30. The NEXTVAL and CURRVAL pseudocolumns can be used in which of the following SQL constructs? Select all that apply.
Command returns the number of records returned by a query.
VALUES clause of an INSERT statement
When the table is small (unless your business rules require you too)
Equijoin and identical column names
31. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Testing functions
X
@ or START
Run scripts
32. When disabling a unique or primary key - you can keep the index if you specify the __________________ clause in the ALTER TABLE statement.
DROP INDEX need_to_pass_i
VALUES
KEEP INDEX
ADD_MONTHS function
33. The ____________ command makes changes permanent.
COMMIT
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
Details
Script
34. Joins involving multiple columns must always follow the ____________ relationship path.
Running a script file
Orphan
Primary key/foreign key
Null
35. The DUAL table can be used for...
DROP INDEX need_to_pass_i
KEEP INDEX
Testing functions
MODIFY
36. The ALTER SESSION statement can change the session's...
999999.9999
Crow's foot
Time zone
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.
37. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
4
**** 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
BETWEEN
ANSI
38. To restart a sequence at a lower number - you can drop and ________ the sequence.
Time zone
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
Combine
Re-create
39. List 4 aggregate functions
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
Surrogate key
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
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.
40. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
INTERSECT
Precision
Any
41. The focus of the logical data model is _____________
Non-matching rows
Both MIN and MAX
Running a script file
Business problems
42. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
STORAGE
4
999999.9999
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. You can simplify the writing of SQL statements by writing SQL _________ that generate and execute other SQL statements.
Script
VALUES clause of an INSERT statement
RENAME just_two_more_weeks TO finally_i
Same
44. A calculation with a null always yields...
Another null
SELECT DISTINCT menu FROM restaurant
VALUES
Dynamic SQL is used to be continuously updated by the background processes in the Oracle instance but never by the user.
45. The __________ operator is inclusive of the two values specified.
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
BETWEEN
Extra spaces
Semicolon or forward slash
46. The same function can be used ______ in a SELECT statement.
Details
LIKE
Twice
Time zone
47. What is the first column of a composite index called?
Columns
Leading-edge
RUN SCRIPT
Any
48. 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
49. Explain how the SPOOL command is used and what program it can be used in.
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
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.
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
Time zone
50. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
ALL_OBJECTS
Details
Non-matching rows
Semicolon or forward slash