Beginning SQL
Beginning SQL Beginning SQL
Chapter 1 Exercise 1 Solution A Exercise Answers A separate table, which you can call the Location table, with a primary key field of integer data type should hold the meeting location details. The table should look like the table shown below: Field Name Data Type Notes LocationId integer Primary key Location varchar(200) You need to alter the Attendance table so that instead of storing the whole address in the Location field for every record, the table stores the integer value from the Location table shown above. The new Attendance table looks like this: Field Name Data Type Notes MeetingDate date Change to datetime data type if using MS SQL Server LocationId integer Foreign key MemberAttended char(1) MemberId integer Foreign key linking to MemberDetails table
- Page 720: Chapter 12 You might implement this
- Page 724: Chapter 12 Another shortcut, using
- Page 728: Chapter 12 As you can imagine, givi
- Page 732: Chapter 12 The situation gets a lit
- 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 776: Appendix A Exercise 2 Solution 368
- Page 780: Appendix A ( 8, ‘Jack’, ‘John
- Page 784: Appendix A ZipCode, Email, DateOfJo
- Page 788: Appendix A Exercise 3 Solution Firs
- 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
Chapter 1<br />
Exercise 1 Solution<br />
A<br />
Exercise Answers<br />
A separate table, which you can call the Location table, with a primary key field of integer data<br />
type should hold the meeting location details. The table should look like the table shown below:<br />
Field Name Data Type Notes<br />
LocationId integer Primary key<br />
Location varchar(200)<br />
You need to alter the Attendance table so that instead of storing the whole address in the Location<br />
field for every record, the table stores the integer value from the Location table shown above. The<br />
new Attendance table looks like this:<br />
Field Name Data Type Notes<br />
MeetingDate date Change to datetime data type if using MS<br />
<strong>SQL</strong> Server<br />
LocationId integer Foreign key<br />
MemberAttended char(1)<br />
MemberId integer Foreign key linking to MemberDetails table