Hello All,
I am looking for
B.T as BT and A.ID or AID
BT, AID
ETz 111
ETz 111
ETz 111
ETl 121
ETx 333
ETx 333
CDx 331
CDx 331
I have 2 tables, one two many
Table A containing a ID
and Table B containing the many table
Table B contains the ID that is the same ID from Table A but can contain many.
with these sting search conditions WHERE TYPE LIKE '%ET%' and Type != 'CD'
and order by A.ID to order descending to hope to find duplicates to prove one to many
I expect to have possibly duplicates in the ID in Table A. can you please help is this query correct.
Select A. ID as AID, B.T as BT
from A
full outer join B ON A.ID=B.ID
WHERE TYPE LIKE '%E%' and Type != 'CD'
order by A.ID
is the query correct? is the outer join the correct join? any other way
Also if possible. Get a count of the many in the same query. Thank you
any suggestions