hiii dears
i have a db to collect the services of polyclinic center that handle with insurance companies and thier costumers.
- tblBillHead : contains a field companyID (fk connected to tblCompanyData on Pk CompanyID)
- tblBillDetails (conjunction table) : contains ServiceNo , BillNo , ServicePriceB
- tblServices : ServiceID , ServiceName , ServicePrice .
the services name is the same for all that companies , but the difference is on the Service Price , for every company a service price Example :
i do not want to reapeat the Service Name for every Company .because the names is the same for all that companies
what is the right method to deal with that problem ?
i have a db to collect the services of polyclinic center that handle with insurance companies and thier costumers.
- tblBillHead : contains a field companyID (fk connected to tblCompanyData on Pk CompanyID)
- tblBillDetails (conjunction table) : contains ServiceNo , BillNo , ServicePriceB
- tblServices : ServiceID , ServiceName , ServicePrice .
the services name is the same for all that companies , but the difference is on the Service Price , for every company a service price Example :
ServiceID | CompanyID2 | ServiceName | ServicePrice |
---|---|---|---|
1 | 1 | CBC | 200 |
2 | 2 | CBC | 150 |
3 | 3 | CBC | 100 |
4 | 1 | ESR | 50 |
5 | 2 | ESR | 100 |
6 | 3 | ESR | 75 |
i do not want to reapeat the Service Name for every Company .because the names is the same for all that companies
what is the right method to deal with that problem ?