A2 DB Jan 08

270 views
231 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
270
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • A2 DB Jan 08

    1. 1. Jan 2008 exam paper Employee number Employee name Rate category Project number Employee number Project number Project name Rate category Hourly rate entity1 entity2 link e.g. Street, Town, City are dependent on Postcode (and not on the table’s PRIMARY KEY) CustomerID HouseNum Street Town City Postcode dependent  not dependent 3NF
    2. 3. members rides sessions
    3. 4. sessions rides members sessions reservations members sessions
    4. 5. reservations members sessions sessions ride members reservations rides sessions
    5. 6. members reservations rides sessions Session No. Session Time Session Date Ride Code 673234 11:00:00 03/06/2008 FX018 673235 14:00:00 03/06/2008 FX018 673236 16:00:00 03/06/2008 FX018 673237 11:00:00 04/06/2008 FX018 673237 11:00:00 04/06/2008 FX018 673237 11:00:00 04/06/2008 FX018 673238 14:00:00 04/06/2008 FX018 673239 16:00:00 04/06/2008 FX018 673239 16:00:00 04/06/2008 FX018 673239 16:00:00 04/06/2008 FX018 673239 16:00:00 04/06/2008 FX018 673240 11:00:00 03/06/2008 DX028 673241 14:00:00 03/06/2008 DX028 673242 16:00:00 03/06/2008 DX028 673242 16:00:00 03/06/2008 DX028 673242 16:00:00 03/06/2008 DX028 673243 11:00:00 04/06/2008 DX028 673244 14:00:00 04/06/2008 DX028 673244 14:00:00 04/06/2008 DX028 673245 16:00:00 04/06/2008 DX028 673245 16:00:00 04/06/2008 DX028 673245 16:00:00 04/06/2008 DX028 673245 16:00:00 04/06/2008 DX028 673246 11:00:00 03/06/2008 GC223 etc. etc. etc. etc. data file Card Number Customer ID Customer Last Name Customer First Name Customer Address Line 1 Customer Town Customer County Customer Post Code Points Outstanding Print Card Student Session Number Session Time Session Date Number Reserved Reserved Places Available Ride Code Ride Name Points Value Ride Price session number (PK) date time places available ride code (FK) ride code (PK) Ride Name Points Value Ride Price customerID (FK) session number (FK) customerID (PK) etc. … Points Outstanding Print Card Student
    6. 7. <ul><li>CustomerID needs to be Autonumber </li></ul><ul><li>but you can’t make a field Autonumber of it’s already got data in it! </li></ul><ul><li>create the table </li></ul><ul><li>make a new CustomerID field with Autonumber </li></ul><ul><li>delete all records </li></ul><ul><li>use Append Query to add data again </li></ul><ul><li>Also, printcard and student can be set to Yes/No </li></ul>
    7. 8. Create a form to add new members (remember that they will use it themselves) <ul><li>what do we want them to see? </li></ul><ul><li>how can we make the form open up ready for a new record? </li></ul><ul><li>what should their points total be? </li></ul><ul><li>how can we make their CustomerID appear as a membership number? </li></ul><ul><li>how can we prevent them from changing their own points?! (or anything else) </li></ul>

    ×