

MCQOPTIONS
Saved Bookmarks
This section includes 25 Mcqs, each offering curated multiple-choice questions to sharpen your Database knowledge and support exam preparation. Choose a topic below to get started.
1. |
With the UNION clause, each query involved must output the same number of columns, and they must be UNION compatible.~! |
A. | True |
B. | False |
Answer» B. False | |
2. |
A function returns one value and has only output parameters.~! |
A. | True |
B. | False |
Answer» C. | |
3. |
A correlated subquery is where the outer query depends on data from the inner query.~! |
A. | True |
B. | False |
Answer» C. | |
4. |
Outer join is the same as equi-join, except one of the duplicate columns is eliminated in the result table.~! |
A. | True |
B. | False |
Answer» C. | |
5. |
The code to create triggers and routines is stored in only one location and is administered centrally.%! |
A. | True |
B. | False |
Answer» B. False | |
6. |
The most frequently used relational operation, which brings together data from two or more related tables into one resultant table, is called an equi-join.%! |
A. | True |
B. | False |
Answer» C. | |
7. |
Subqueries can be nested multiple times.%! |
A. | True |
B. | False |
Answer» B. False | |
8. |
ROLLBACK WORK asks SQL to empty the log file.%! |
A. | True |
B. | False |
Answer» B. False | |
9. |
There should be one condition within the WHERE clause for each pair of tables being joined.%! |
A. | True |
B. | False |
Answer» B. False | |
10. |
The UNION clause is used to combine the output from multiple queries together into a single result table.%! |
A. | True |
B. | False |
Answer» B. False | |
11. |
The joining technique is useful when data from several relations are to be retrieved and displayed and the relationships are not necessarily nested.%! |
A. | True |
B. | False |
Answer» B. False | |
12. |
When AUTOCOMMIT is set on, changes will be made automatically at the end of each SQL statement.%! |
A. | True |
B. | False |
Answer» B. False | |
13. |
Triggers are stored blocks of code that have to be called in order to operate.%! |
A. | True |
B. | False |
Answer» C. | |
14. |
A transaction is the complete set of closely related update commands that must all be done, or none of them done, for the database to remain valid.%! |
A. | True |
B. | False |
Answer» B. False | |
15. |
A UNION query is which of the following?%! |
A. | Combines the output from no more than two queries and must include the same number of columns. |
B. | Combines the output from no more than two queries and does not include the same number of columns. |
C. | Combines the output from multiple queries and must include the same number of columns. |
D. | Combines the output from multiple queries and does not include the same number of columns. |
Answer» D. Combines the output from multiple queries and does not include the same number of columns. | |
16. |
Which of the following is true concerning triggers?%! |
A. | You do not create them with SQL. |
B. | They execute against only some applications that access a database. |
C. | They have an event, condition, and action. |
D. | They cannot cascade (cause another trigger to fire). |
Answer» D. They cannot cascade (cause another trigger to fire). | |
17. |
*/*_Which of the following statements is true concerning routines and triggers?? |
A. | Both consist of procedural code. |
B. | Both have to be called to operate. |
C. | Both run automatically. |
D. | Both are stored in the database. |
Answer» B. Both have to be called to operate. | |
18. |
*/*_A UNION query is which of the following?? |
A. | Combines the output from no more than two queries and must include the same number of columns. |
B. | Combines the output from no more than two queries and does not include the same number of columns. |
C. | Combines the output from multiple queries and must include the same number of columns. |
D. | Combines the output from multiple queries and does not include the same number of columns. |
Answer» D. Combines the output from multiple queries and does not include the same number of columns. | |
19. |
*/*_Which of the following is true concerning triggers?? |
A. | You do not create them with SQL. |
B. | They execute against only some applications that access a database. |
C. | They have an event, condition, and action. |
D. | They cannot cascade (cause another trigger to fire). |
Answer» D. They cannot cascade (cause another trigger to fire). | |
20. |
_ A CASE SQL statement is which of the following?$? |
A. | A way to establish an IF-THEN-ELSE in SQL. |
B. | A way to establish a loop in SQL. |
C. | A way to establish a data definition in SQL. |
D. | All of the above. |
Answer» B. A way to establish a loop in SQL. | |
21. |
_ Embedded SQL is which of the following?$? |
A. | Hard-coded SQL statements in a program language such as Java. |
B. | The process of making an application capable of generating specific SQL code on the fly. |
C. | Hard-coded SQL statements in a procedure. |
D. | Hard-coded SQL statements in a trigger. |
Answer» B. The process of making an application capable of generating specific SQL code on the fly. | |
22. |
_ The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T ;$? |
A. | Equi-join |
B. | Natural join |
C. | Outer join |
D. | Cartesian join |
Answer» E. | |
23. |
_Which of the following is true concerning a procedure?$? |
A. | You do not create them with SQL. |
B. | They do not need to have a unique name. |
C. | They include procedural and SQL statements. |
D. | They are the same thing as a function. |
Answer» D. They are the same thing as a function. | |
24. |
_The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID$? |
A. | Equi-join |
B. | Natural join |
C. | Outer join |
D. | Cartesian join |
Answer» B. Natural join | |
25. |
_How many tables may be included with a join?$? |
A. | One |
B. | Two |
C. | Three |
D. | All of the above. |
Answer» E. | |