Subject | Re: [ib-support] SQL design question |
---|---|
Author | Lucas Franzen |
Post date | 2001-06-01T19:27:02Z |
Hi Nioco,
me again.
Nico Callewaert schrieb:
SELECT * FROM TABLE2 B
JOIN TABLE1 A ON B.FIELD = A.FIELD
????
Luc.
me again.
Nico Callewaert schrieb:
>How about reversing the join from Table2 to Table1?
> Hi list,
>
> I will make my question clear with an example : I have 2 tables with a me data like this :
>
> Table1 Table2
> ----------------------------------
> LAS LAS
> DRA DRA
> COL COL
> SNY <--- That's the record I would like to retrieve....
>
> So, to retrieve the common data from the tables is easy with a join, but what if I like to retrieve all the records from table 2 that don't exists in table 1. I there a way to do that ?
SELECT * FROM TABLE2 B
JOIN TABLE1 A ON B.FIELD = A.FIELD
????
Luc.