var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Help With Entity Relation
Hi everyone. First of all, yes this is a homework question. I've tried working it out myself but alas here I am.
Anyway. here goes.
I have these 3 entities. Passenger, Company, Payment
Basically a passenger makes a payment. Also a company makes a payment.
But a payment can only be made by either a passenger or a company not both. How can i form that sort of relation? Is it possible?
do a search for supertype/subtype
you need a supertype table (clients?) to which both passengers and companies belong as subtypes
then relate payments to clients