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 ______ 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
2. _________ rows are not allowed in the relational model.
Orphan
MINUS
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.
VALUES clause of an INSERT statement
3. A _____ is a query definition stored in the database that looks just like a table - but does not have any physical rows
Columns
X
All caps
Scalar
4. 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
SELECT DISTINCT menu FROM restaurant
ADD_MONTHS function
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
5. The ____________ command makes changes permanent.
INNER JOIN
COMMIT
Optional
Both MIN and MAX
6. __________________ inserts the current date and time.
INNER JOIN
BETWEEN
ON
SYSDATE
7. Users can only see changes made to a database once they have been...
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
User-defined reports
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
Committed
8. List the steps performed by a correlated subquery.
Committed
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.
**** 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
Non-matching rows
9. To revert back to a state that happened before you ran your change statement - you issue a ____________ command.
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.
FALSE
Parent table
ROLLBACK
10. The Nonequijoin can use the ________________ operator to construct joins that are not based on equality of values.
4000
BETWEEN
SUM
MINUS
11. What is the Oracle data dictionary called that contains a set of tables and views containing the data about the database?
LIKE
ALL_OBJECTS
Groups
Non-matching rows
12. SELECT * FROM instructor ORDER BY phone
FALSE
A correct statement
X
Equijoin and identical column names
13. You use the _________ keyword to add columns or constraints to a table.
DICT_COLUMNS
Logical unit of work
ADD
2000
14. Instead of using the Oracle Outer Join Operator or the ANSI syntax - you can achieve the same result with two SQL statements: ____________ and a ____________
@ or START
MINUS
Actual column
Equijoin and correlated subquery
15. What is the first column of a composite index called?
LENGTH
Leading-edge
Run scripts
Testing functions
16. What is the keyboard shortcut for the ROLLBACK command?
BETWEEN
DESC dict;
All caps
F12
17. The term ____________ ___________ is used to express a join that satisfies the join condition.
X
Primary key/foreign key
INNER JOIN
ALL_OBJECTS
18. SQL Developer provides an extensive list of useful reports and offers the capability to create your own...
Semicolon or forward slash
Scale
Common column value
User-defined reports
19. Explain the differences in how an ANSI Full Outer Join and a Full Outer Join using the UNION Operator work
Inconsistencies
Default is 14; when you use the default - you repeat the heading every 14 rows.
X
99.99
20. The ____________ icon allows you to execute multiple statements and emulates SQL *Plus as much as possible.
B-Tree Index
RUN SCRIPT
Asterisk
Twice
21. What is the data type you can use if you need an unlimited number of textual characters?
CLOB
Retrieve
Self-joins
B-Tree Index
22. SQL*Plus is used more than SQL Developer when you need to...
Run scripts
Surrogate key
ANY
UNION
23. An outer join includes the result rows returned by an __________ plus extra rows where no matches are found.
A correct statement
Common column value
Surrogate key
Equijoin
24. You can pass parameters from the operating system when ___________ in SQl*Plus
Running a script file
UNION operator
DD-MON-YY
Has not changed the name
25. Which operator is most commonly used?
UNION
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
ADD_MONTHS function
26. PAGESIZE
ALL_OBJECTS
Re-create
Equijoin
Default is 14; when you use the default - you repeat the heading every 14 rows.
27. The time zone displacement value indicates the time difference from _______.
Inconsistencies
RENAME just_two_more_weeks TO finally_i
Optional
UTC
28. A transaction is a...
Correlated
UTC
Logical unit of work
MODIFY
29. A join across three tables can be expressed with the ________ join syntax.
Orphan
Has not changed the name
ANSI
Control - Revoke - Define - TRUNCATE Manipulate - MERGE
30. List the different types of data dictionary views.
USER_ - ALL_ - DBA_ - and V$
Has not changed the name
Common column value
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
31. Write an SQL statement for SQL *Plus in which you want any unique menu items to be displayed from the restaurant table
Same
SELECT DISTINCT menu FROM restaurant
RENAME just_two_more_weeks TO finally_i
Re-create
32. Explain what a static data dictionary view is and how it is used
Crow's foot
B-Tree Index
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.
DECODE
33. Explain how the SPOOL command is used and what program it can be used in.
**** 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
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
X
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.
34. What is the main difference between the NOT EXISTS and the NOT IN operators?
DESC dict;
The way NULL values are treated
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
Combine
35. 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.
SELECT SYSDATE+1/96 - FROM dual
When the table is small (unless your business rules require you too)
Has not changed the name
User-defined reports
36. List the reasons that a subquery could not be unnested.
X
Groups
999999.9999
Equijoin and identical column names
37. What is the name of the key automatically generated from a sequence?
COMMIT
All
Surrogate key
ON
38. The COUNT function is useful for determining whether a table has...
**** 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
Primary key/foreign key
Data
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
39. Explain Flashback queries and how they are used. Give an example of a FLASHBACK_TRANSACTION query and explain what it does row by row.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. Explicit data type conversion is preferable to Oracle's...
When the table is small (unless your business rules require you too)
Implicit conversion
MODIFY
Orphan
41. Converting a text literal to DATE format requires the use of the...
Primary key/foreign key
TO_CHAR function
Structured Query Language
UNION
42. LINESIZE
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
Business problems
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.
BETWEEN
43. You can __________ DISTINCT and a GROUP BY clause in the same SELECT statement.
Extra spaces
12:00:00 A.M
Retrieve
Combine
44. The _____________ clause determines how rows are grouped.
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
99.99
Default is 14; when you use the default - you repeat the heading every 14 rows.
GROUP BY
45. When using the following data: NUMBER(10 -4) - the lowest number you can possibly have is __________.
Testing functions
FALSE
999999.9999
Black
46. When you have issued a DELETE command - you can still ________ those rows and restore the information.
Crow's foot
Surrogate key
**** 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
Retrieve
47. Checks whether any value in the list makes the condition true.
VALUES clause of an INSERT statement
FALSE
Any
Optional
48. The TRUNC function on a date without a format model truncates the timestamp to...
Command determines the total number of characters SQL *Plus displays in on line before beginning a new line.
12:00:00 A.M
Mathematical equations
COUNT(registration_date) - AVG (capacity) - MIN (capacity) - MAX (capacity)
49. All SQL statements contained within a script must end with a _______________ - even if they are done in SQL Developer.
Running a script file
Semicolon or forward slash
Structured Query Language
Committed
50. Queries that are found in parentheses are done first - just as in the order of operations when doing...
SUM
V$
Mathematical equations
SET clause of an UPDATE statement