Beginning SQL
Beginning SQL Beginning SQL
Appendix A Exercise 3 Solution First, decide which columns you want. In this case, you want the LastName and FirstName columns from the MemberDetails table: SELECT LastName, FirstName FROM MemberDetails Now you need to ensure that only members whose date of joining was on or before December 31, 2004, are included in the results set. Use a WHERE clause and specify that the DateOfJoining column be before (or less than) that date: SELECT LastName, FirstName FROM MemberDetails WHERE DateOfJoining
- Page 736: Chapter 12 Summary Database securit
- Page 740: Chapter 13 robust, fault-tolerant m
- Page 744: Chapter 13 Gigahertz Networks or Co
- Page 748: Chapter 13 Database Cache 354 In ad
- Page 752: Chapter 13 Again, the shotgun appro
- Page 756: Chapter 13 358 Figure 13-3 Leaf Ind
- Page 760: Chapter 13 Try It Out Dropping Inde
- Page 764: Chapter 13 64k Block 64k Block Figu
- Page 768: Chapter 13 ❑ Inner joins look lik
- Page 774: Chapter 1 Exercise 1 Solution A Exe
- Page 778: Chapter 2 Exercise 1 Solution There
- Page 782: Email, DateOfJoining ) VALUES ( 7,
- Page 786: Chapter 3 Exercise 1 Solution First
- Page 792: Appendix A 376 Figure A-1 ISBN is a
- Page 796: Appendix A Chapter 5 Exercise 1 Sol
- Page 800: Appendix A 380 You might receive sl
- Page 804: Appendix A 382 You should use the f
- Page 808: Appendix A Your answer may differ,
- Page 812: Appendix A WHERE (SELECT COUNT(*) f
- Page 816: Appendix A Exercise 2 Solution CREA
- Page 820: Appendix A Chapter 13 Exercise 1 So
- Page 824: Appendix B 392 Click the database i
- Page 828: Appendix B 394 Click Install to beg
- Page 832: Appendix B 396 Select the Detailed
- Page 836: Appendix B 398 Leave it at the defa
Appendix A<br />
Exercise 3 Solution<br />
First, decide which columns you want. In this case, you want the LastName and FirstName columns<br />
from the MemberDetails table:<br />
SELECT LastName, FirstName<br />
FROM MemberDetails<br />
Now you need to ensure that only members whose date of joining was on or before December 31, 2004,<br />
are included in the results set. Use a WHERE clause and specify that the DateOfJoining column be before<br />
(or less than) that date:<br />
SELECT LastName, FirstName<br />
FROM MemberDetails<br />
WHERE DateOfJoining