The following workshop is composed of a series of quiz questions and practical exercises. The quiz questions are designed to test your overall understanding of the current material. The practical exercises are intended to afford you the opportunity to apply the concepts discussed during the current hour, as well as build upon the knowledge acquired in previous hours of study. Please take time to complete the quiz questions and exercises before continuing. Refer to Appendix C, "Answers to Quizzes and Exercises," for answers.
1: | Would the use of a unique index on a small table be of any benefit? |
2: | What happens when the optimizer chooses not to use an index on a table when a query has been executed? |
3: | Should the most restrictive clause(s) be placed before the join condition(s) or after the join conditions in the WHERE clause? |
1: | Rewrite the following SQL statements to improve their performance. Use the EMPLOYEE_TBL and the EMPLOYEE_PAY_TBL as described here:
CONSTRAINT EMP_PK PRIMARY KEY (EMP_ID)
CONSTRAINT EMP_FK FOREIGN KEY (EMP_ID) REFERENCES EMPLOYEE_TBL (EMP_ID)
|