Workshop

The Workshop provides quiz questions to help you solidify your understanding of the material covered and exercises to provide you with experience in using what you've learned. Try to answer the quiz and exercise questions before checking the answers in Appendix A, "Answers to Quizzes and Exercises," and make sure that you understand the answers before continuing to the next lesson.

Quiz

1:Name the six navigation operations that are possible with cursors.
2:Can a cursor select data from joined tables?
3:Name the six steps required to use a cursor.

Exercise

Q1:Create a cursor on the Employees table in the Northwind database. Read in each employee's last name, birth date, and hire date. If an employee is more than 40 years old, then print ...

Get Sams Teach Yourself Transact-SQL in 21 Days, 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.