A2 Jan 08 (nov)

379 views

Published on

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

  • Be the first to like this

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

No notes for slide
  • A2 Jan 08 (nov)

    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. 10. 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>
    8. 11. existing new <ul><li>new member details </li></ul><ul><li>points default to 2000 </li></ul><ul><li>mem. no. shows 5555 1946 </li></ul><ul><li>before automatically </li></ul><ul><li>generated number </li></ul><ul><li>tick box for student but not </li></ul><ul><li>for print card </li></ul><ul><li>existing member details </li></ul><ul><li>mem. no. shows 5555 1946 before number </li></ul><ul><li>tick box for student but not for print card </li></ul><ul><li>reservations subform </li></ul><ul><li>date </li></ul><ul><li>time </li></ul><ul><li>ride </li></ul><ul><li>points </li></ul>
    9. 12. existing new <ul><li>new member details </li></ul><ul><li>points default to 2000 </li></ul><ul><li>mem. no. shows 5555 1946 before automatically generated number </li></ul><ul><li>tick box for student but not for print card </li></ul><ul><li>existing member details </li></ul><ul><li>mem. no. shows 5555 1946 before automatically generated number </li></ul><ul><li>tick box for student but not for print card </li></ul><ul><li>reservations subform </li></ul><ul><li>date </li></ul><ul><li>time </li></ul><ul><li>ride </li></ul><ul><li>points </li></ul>make a reservation (choose a session on a ride) what do we need to store? already got (can pull from previous form) need to choose a ride and date/time first
    10. 13. existing new <ul><li>new member details </li></ul><ul><li>points default to 2000 </li></ul><ul><li>mem. no. shows 5555 1946 before automatically generated number </li></ul><ul><li>tick box for student but not for print card </li></ul><ul><li>existing member details </li></ul><ul><li>mem. no. shows 5555 1946 before automatically generated number </li></ul><ul><li>tick box for student but not for print card </li></ul><ul><li>reservations subform </li></ul><ul><li>date </li></ul><ul><li>time </li></ul><ul><li>ride </li></ul><ul><li>points </li></ul>choose session make a reservation (choose a session on a ride) simplest way (but not the best) drop down list use query to get list of rides, dates, times Why is a query needed? Why not just get from Session table? What is wrong with the list we get? How could we improve it? ‘ append’ query can add session number and customerID to Reservation table
    11. 14. existing new <ul><li>new member details </li></ul><ul><li>points default to 2000 </li></ul><ul><li>mem. no. shows 5555 1946 before automatically generated number </li></ul><ul><li>tick box for student but not for print card </li></ul><ul><li>existing member details </li></ul><ul><li>mem. no. shows 5555 1946 before automatically generated number </li></ul><ul><li>tick box for student but not for print card </li></ul><ul><li>reservations subform </li></ul><ul><li>date </li></ul><ul><li>time </li></ul><ul><li>ride </li></ul><ul><li>points </li></ul>choose ride make a reservation (choose a session on a ride) choose session drop down list (shows name but is really storing rideID) what sessions are available? (query needed to get this information. Pull rideID from last form. Base drop down list on this query) better way (easier choice) ‘ append’ query can add session number and customerID to Reservation table
    12. 15. existing new <ul><li>new member details </li></ul><ul><li>points default to 2000 </li></ul><ul><li>mem. no. shows 5555 1946 before automatically generated number </li></ul><ul><li>tick box for student but not for print card </li></ul><ul><li>existing member details </li></ul><ul><li>mem. no. shows 5555 1946 before automatically generated number </li></ul><ul><li>tick box for student but not for print card </li></ul><ul><li>reservations subform </li></ul><ul><li>date </li></ul><ul><li>time </li></ul><ul><li>ride </li></ul><ul><li>points </li></ul>choose ride make a reservation (choose a session on a ride) choose session points price drop down list (shows name but is really storing rideID) If we include these these fields then they can be used later to check if enough points what sessions are available? (query needed to get this information. Pull rideID from last form. Base drop down list on this query) even better way (allows for expansion later) ‘ append’ query can add session number and customerID to Reservation table

    ×