Worked great. I didn't realize you could do multiple joins on the same
table..

Jeff

On 2/15/06, Jim Wright <[EMAIL PROTECTED]> wrote:
>
> you can join the first table twice....
>
> select p.name,c1.color AS color1, c2.color AS color2
> from  people p LEFT JOIN colors c1 ON p.colorchoice1 = c1.colorID
> LEFT JOIN colors c2 ON p.colorchoice2 = c2.colorID
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232405
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to