Sail E0 Webinar

MCQs

Total Questions : 29 | Page 1 of 3 pages
Question 1. What type of join is needed when you wish to include rows that do not have matching values?
  1.    All of these
  2.    Natural join
  3.    Outer join
  4.    Equi-join
 Discuss Question
Answer: Option C. -> Outer join
Question 2. What type of join is needed when you wish to return rows that do have matching values?
  1.    All of these
  2.    Equi-join
  3.    Natural join
  4.    Outer join
 Discuss Question
Answer: Option A. -> All of these
Question 3. Which of the following is true concerning a procedure?
  1.    You do not create them with SQL.
  2.    They are the same thing as a function.
  3.    They include procedural and SQL statements.
  4.    They do not need to have a unique name.
 Discuss Question
Answer: Option C. -> They include procedural and SQL statements.
Question 4. A CASE SQL statement is which of the following?
  1.    A way to establish an IF-THEN-ELSE in SQL.
  2.    A way to establish a loop in SQL.
  3.    A way to establish a data definition in SQL.
  4.    All of these
 Discuss Question
Answer: Option A. -> A way to establish an IF-THEN-ELSE in SQL.
Question 5. Which of the following statements is true concerning routines and triggers?
  1.    Both have to be called to operate.
  2.    Both are stored in the database.
  3.    Both run automatically.
  4.    Both consist of procedural code.
 Discuss Question
Answer: Option D. -> Both consist of procedural code.
Question 6. Which of the following is one of the basic approaches for joining tables?
  1.    Subqueries
  2.    All of these
  3.    Union Join
  4.    Natural join
 Discuss Question
Answer: Option B. -> All of these
Question 7. 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
  1.    Natural join
  2.    Outer join
  3.    Equi-join
  4.    Cartesian join
 Discuss Question
Answer: Option C. -> Equi-join
Question 8. Which of the following is true concerning systems information in an RDBMS?
  1.    All of these
  2.    This information often cannot be updated by a user.
  3.    RDBMS store database definition information in system-created tables.
  4.    This information can be accessed using SQL.
 Discuss Question
Answer: Option A. -> All of these
Question 9. A UNION query is which of the following?
  1.    Combines the output from multiple queries and must include the same number of columns.
  2.    Combines the output from no more than two queries and does not include the same number of columns.
  3.    Combines the output from multiple queries and does not include the same number of columns.
  4.    Combines the output from no more than two queries and must include the same number of columns.
 Discuss Question
Answer: Option A. -> Combines the output from multiple queries and must include the same number of columns.
Question 10. Embedded SQL is which of the following?
  1.    Hard-coded SQL statements in a trigger.
  2.    The process of making an application capable of generating specific SQL code on the fly.
  3.    Hard-coded SQL statements in a program language such as Java.
  4.    Hard-coded SQL statements in a procedure.
 Discuss Question
Answer: Option C. -> Hard-coded SQL statements in a program language such as Java.

Latest Videos

Latest Test Papers