Subject | Re: [IBO] Colors for IB_LookupCombo in an IB_Grid |
---|---|
Author | Helen Borrie |
Post date | 2001-02-07T10:48:16Z |
At 10:29 PM 07-02-01 +1300, you wrote:
with the native Delphi TQuery and the IBX TIBQuery. But this is **NOT** a
master-detail relationship.
It's a thoroughly bad thing to have a FK relationship defined referencing a
low-selectivity column such as you have in a Keysource-Lookup relationship.
Please show us
(1) the SQL for the Keysource table and
(2) the entry you have for KeyLinks for the Lookup table.
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>I wonder if there needs to be a foreign key constraint between the twoThat is wrong...although that *is* how master-detail relationships work
>columns? The FAQ says this is required, but it is not required when the
>column names are identical.
with the native Delphi TQuery and the IBX TIBQuery. But this is **NOT** a
master-detail relationship.
It's a thoroughly bad thing to have a FK relationship defined referencing a
low-selectivity column such as you have in a Keysource-Lookup relationship.
Please show us
(1) the SQL for the Keysource table and
(2) the entry you have for KeyLinks for the Lookup table.
>I have proven this. The GSG does not have the...and wrong...
>word "foreign" in it. (using Help Find). The CONTACT.GDB database also does
>not have a FKConstraint between the columns so the advice in Lars' FAQ
>article is too strong.
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________