Subject | Re: [firebird-support] Possible to have an index across 2 tables? |
---|---|
Author | masotti |
Post date | 2008-11-04T09:48:35Z |
Hi Helen,
Helen Borrie ha scritto:
incident and 1 customer, N Comm and 1 incident.
Incidents.CustomerID and Comms.IncidentID are not UNIQUE indexes as you
initially supposed.
Anyway, comms records can't get confused by customer.
Ciao.
Mimmo.
Helen Borrie ha scritto:
> Table RecordsSeems to me, from count of Records, that there are 1:N relationships. N
> Customers 15000 PK ID
> Incidents 150000 PK ID, CustomerID references Customers.ID
> Comms 1500000 PK ID, IncidentID references Incidents.ID
>
>
> So what you said before isn't quite correct. You have a 1:1 relationship between an Incident and a Customer, and a 1:1 relationship between a Comm and an Incident. That won't let your comms records get confused by customer.
>
incident and 1 customer, N Comm and 1 incident.
Incidents.CustomerID and Comms.IncidentID are not UNIQUE indexes as you
initially supposed.
Anyway, comms records can't get confused by customer.
Ciao.
Mimmo.