Hi
I need to be able to price calls made by phones. The way that I am doing it seems to go against design principles but I can't come up with a better way of doing it. I thought maybe someone here could point me in the right direction.
Each call record tells me what type of phone is making the call and to what type of phone so I have a table of OriginPhone, DestPhone, CallType, CallDesc. This allows me to get the call type. The problem is the cost of that type of call varies depending on the phone's features (dish size etc). The only way of knowing the phone's features is from my stored info, NOT from the call records. So I allocate each phone a special callplan. So the pricing table looks like this :
callplans
---------
PlanID (PK)
PlanCode
Desc
Indate
Outdate (bcos prices on a plan can change over time)
CallType1
CallType2
CallType3... (these contain the price for that call type on that call plan)
obviously it is not good to have the calltypes as fields because they vary and there are many.
any ideas?
Thanks
Dax
I need to be able to price calls made by phones. The way that I am doing it seems to go against design principles but I can't come up with a better way of doing it. I thought maybe someone here could point me in the right direction.
Each call record tells me what type of phone is making the call and to what type of phone so I have a table of OriginPhone, DestPhone, CallType, CallDesc. This allows me to get the call type. The problem is the cost of that type of call varies depending on the phone's features (dish size etc). The only way of knowing the phone's features is from my stored info, NOT from the call records. So I allocate each phone a special callplan. So the pricing table looks like this :
callplans
---------
PlanID (PK)
PlanCode
Desc
Indate
Outdate (bcos prices on a plan can change over time)
CallType1
CallType2
CallType3... (these contain the price for that call type on that call plan)
obviously it is not good to have the calltypes as fields because they vary and there are many.
any ideas?
Thanks
Dax