Workshop

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.

Quiz

1:Will the following SQL statements work?
  1. SELECT SUM(SALARY), EMP_ID
    FROM EMPLOYEE_PAY_TBL
    GROUP BY 1 and 2;
    										
  2. SELECT EMP_ID, MAX(SALARY)
    FROM EMPLOYEE_PAY_TBL
    GROUP BY SALARY, EMP_ID;
    										
  3.  SELECT EMP_ID, COUNT(SALARY) ...

Get Sams Teach Yourself SQL in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.