Subject | Re: problem adding foreign key |
---|---|
Author | markd_mms |
Post date | 2005-02-07T04:00:38Z |
sorry, probably should have mentioned that all the tables are empty atm
mark
mark
--- In firebird-support@yahoogroups.com, "Adam" <s3057043@y...> wrote:
>
> My guess is that you have some "contacts" records without a parent
> record in the customer table. What does this query return?
>
> select *
> from contacts
> where customerid not in
> (select id from customer);
>
> You are allowed to have more than one table with a foreign key to the
> same parent field, so that won't be it.
>
>
> Adam