How to: SQL Query with multiple FK relations to single table
From: Carl <carl.stottlemyer_at_lmco.com>
Date: 25 Sep 2002 06:44:22 -0700
Message-ID: <bc814416.0209250544.5ffe57d3_at_posting.google.com>
Date: 25 Sep 2002 06:44:22 -0700
Message-ID: <bc814416.0209250544.5ffe57d3_at_posting.google.com>
The following example seems like it should be simple but it is
stumping me. How would you construct a SQL query that prints out the
name (referenced in the People table) of the father and son identified
in the fathers table.
Table People
Table Fathers
pplNo
pplName
fatherNo (references People.pplNo)
sonNo (references People.pplNo)
Thanks,
Carl
Received on Wed Sep 25 2002 - 15:44:22 CEST