Re: O'Reilly interview with Date
From: Kenneth Downs <knode.wants.this_at_see.sigblock>
Date: Fri, 12 Aug 2005 09:25:03 -0400
Message-Id: <7gkus2-uci.ln1_at_pluto.downsfam.net>
>
> OK but if you have to specify the foreign key, why not just specify the
> columns in the firstplace?
Date: Fri, 12 Aug 2005 09:25:03 -0400
Message-Id: <7gkus2-uci.ln1_at_pluto.downsfam.net>
Paul wrote:
>>>OK maybe I'm being dense here, but when you now specify your two tables, >>>"examples" and "examples_xref", how does the system know which of the >>>foreign key constraints to use to generate the join? >> >> Foreign keys are distiguished by suffix and prefix, in the example above >> on of them has the suffix "_TO", so when I specify a query I specify that >> suffix and now it can identify the fk definition and from there the >> columns.
>
> OK but if you have to specify the foreign key, why not just specify the
> columns in the firstplace?
>
> What if you have a non-standard join? For example start_date and
> end_date columns and you want to join where some date is between these
> two?
-- Kenneth Downs Secure Data Software, Inc. (Ken)nneth_at_(Sec)ure(Dat)a(.com)Received on Fri Aug 12 2005 - 15:25:03 CEST