• Like
A2 DB Jan 08
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Published

 

Published in Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
180
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 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
  • 4. sessions rides members sessions reservations members sessions
  • 5. reservations members sessions sessions ride members reservations rides sessions
  • 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
  • 7.
    • CustomerID needs to be Autonumber
    • but you can’t make a field Autonumber of it’s already got data in it!
    • create the table
    • make a new CustomerID field with Autonumber
    • delete all records
    • use Append Query to add data again
    • Also, printcard and student can be set to Yes/No
  • 8. Create a form to add new members (remember that they will use it themselves)
    • what do we want them to see?
    • how can we make the form open up ready for a new record?
    • what should their points total be?
    • how can we make their CustomerID appear as a membership number?
    • how can we prevent them from changing their own points?! (or anything else)