Hello guys, I need a little help relating my tables. I pretty much know how they should be related but I'm not sure about some of the fields. I have a Cart management system. (This system is to track the Carts (the big green garbage carts everyone uses).
I have 4 main tables. Here is how I have them set up and related as of now.
1.tbl_vAddresses (this table is setup as a view because it is the main City Address database that our GIS dept uses. So everyone hits that database to ensure the addresses being used is valid)
AddressID
Address
Unit
Street Name
Street Type
Quadrant
GarbageRoute
tbl_Service
ServiceID
AddressID
ServiceStatus
NbrOfCarts
ServiceFee
BaseFee
ExtraFee
HURoute
HUAcct
HUClass
BusinessName
Remarks
tbl_ServiceEvent
ServiceEventID
ServiceID
AddressID
ServiceEvent
ServiceDate
ServiceRemarks
tbl_OffStreetService
OSSID
ServiceID
OSS_Status
StartDate
EndDate
CustomerName
CustomerPhone
HU_Tenant
CartLocation
OSS_Remarks
tbl_Carts
CartID
SerialNbr
CartStatus
CartStatusDate
CartEvent
CartEventSubType
CartRemarks
Ok, now I will try to explain how the system works:
For every Address there can only be 1 service. A service can have 1 or more ServiceEvents. A Service can have 0 or 1 Off Street Service.
So here is the tricky part so I'm not really sure how to relate this table to the other tables:
An Address can have 1 or More carts.
But the main field for the Carts is the SerialNbr. The SerialNbr drives everything for the Carts.
I hope I have been somewhat clear on what I'm trying to do. I can't move forward with the design until I get the tables set up right.
Any help is so greatly appreciated.
I have 4 main tables. Here is how I have them set up and related as of now.
1.tbl_vAddresses (this table is setup as a view because it is the main City Address database that our GIS dept uses. So everyone hits that database to ensure the addresses being used is valid)
AddressID
Address
Unit
Street Name
Street Type
Quadrant
GarbageRoute
tbl_Service
ServiceID
AddressID
ServiceStatus
NbrOfCarts
ServiceFee
BaseFee
ExtraFee
HURoute
HUAcct
HUClass
BusinessName
Remarks
tbl_ServiceEvent
ServiceEventID
ServiceID
AddressID
ServiceEvent
ServiceDate
ServiceRemarks
tbl_OffStreetService
OSSID
ServiceID
OSS_Status
StartDate
EndDate
CustomerName
CustomerPhone
HU_Tenant
CartLocation
OSS_Remarks
tbl_Carts
CartID
SerialNbr
CartStatus
CartStatusDate
CartEvent
CartEventSubType
CartRemarks
Ok, now I will try to explain how the system works:
For every Address there can only be 1 service. A service can have 1 or more ServiceEvents. A Service can have 0 or 1 Off Street Service.
So here is the tricky part so I'm not really sure how to relate this table to the other tables:
An Address can have 1 or More carts.
But the main field for the Carts is the SerialNbr. The SerialNbr drives everything for the Carts.
I hope I have been somewhat clear on what I'm trying to do. I can't move forward with the design until I get the tables set up right.
Any help is so greatly appreciated.