Jump to content

How should I set this up?


Linuus

Recommended Posts

Hi!

 

Let's say I'm building a site about insurances. The end user should be able to enter some options to see what's the cheapest insurances to get (this is an example).

 

Table 1: companies

Hold the data about all the companies

 

Table 2: insurances

Holds the data about the insurances. It's related to Table 1 using a 'company_id' field.

 

Some insurances demands the customer to be a Student, of a certain age, Sex and so on.

 

The issue is that they have different demands, like this:

 

Insurance 1 demands: (Student AND Sex) OR 65 years old

Insurance 2 demands: Student OR Sex OR 65 years old

Insurance 3 demands: Student AND Sex

...and so on.

 

Somehow I have to save the relations between the demands. It would have been easy if it was only "All demands" or "One of the demands" but it might not be like that...

 

So, any ideas?  :-\

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.