July 19, 2005 at 6:53 am
I have a spec for 3 web pages that will be used to obtain insurance data. One page will be for contents which will hold insurer,cover from and premium payable. Another page will be buildings which will hold insurer, cover from and premium payable (plus some additional fields). Another page will be critical illness which will be insurer, cover from and premium payable (plus some additional fields). What would be the best way to design the database, have separate tables for the above (as different data is held for each type of insurance) or have one table insurances which would make writing reports for insurances a lot easier?
Thanks
Danny
July 19, 2005 at 7:05 am
I think listing the additional fields would help...
If different data is held for each type of insurance then you would be better off having different tables for each type as well as 3 different tables to store the "details" (name, address etc...) of each insurer...
It all depends on what you need to store....if there are common data between the different types then it may make sense to combine them under one table...again depends on what the fields are...
**ASCII stupid question, get a stupid ANSI !!!**
July 19, 2005 at 7:10 am
I was going to create a different table for each, as each type of insurance has common as well as different fields. But if you had to create a report on all insurances, it would be difficult as they are in seperate tables. You would have to do a union. So it may be better to hold it all in one table
July 19, 2005 at 7:20 am
Again - everything hinges on the common fields and separate fields...
eg: You could always have one master table for the common data (insurer, premium, from, to...whatever) with a masterInsurerID which would be 1, 2 or 3 depending on type (building, critical illness...) and an individual insurer ID for each of the different types...
that way you could query either the individual types or all of them if need be...
**ASCII stupid question, get a stupid ANSI !!!**
July 20, 2005 at 8:28 am
I'd suggest using different tables:
July 23, 2005 at 9:17 pm
I agree with sushila, using a master table that holds the common elements and child tables to hold the specific information.
Using unions when it is over 1000 records or so become performance issues.
Today your talking about premiums, tomorrow it maybe claims. It could grow rapidly.
We used the union approach and within a year had to move it to the master table approach.
MikeD
July 25, 2005 at 12:04 pm
Insured (name address blah blah)
-->Building coverage (address, premium, insurer code) <--insurer
-->Contents coverage (amounts, deductibles, named valuables, insurer code) <--insurer
-->Illness coverage (amounts, named persons, named illnesess, insurer code) <--insurer
Or simply:
Insurers (name address, number) <-- Coverages Offered (premiums etc)
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply