Subject | Re: [firebird-support] How do I write this query |
---|---|
Author | Magnus Titho |
Post date | 2005-06-02T12:56:57Z |
Grant Brown wrote:
from tablea t1
join tableb t2 on t2.foreignkey = t1.id
join tablec t3 on t3.foreignkey = t2.id
where t3.somefield = samevalue
Magnus
> ie all 3 tables are relatedselect t1.*
>
> I need to find all records in Table A where the record in Table C = a value
>
from tablea t1
join tableb t2 on t2.foreignkey = t1.id
join tablec t3 on t3.foreignkey = t2.id
where t3.somefield = samevalue
Magnus