HI all,
I have a simple query:
SELECT tableA.fieldA, tableA.fieldB, tableB.fieldA FROM tableA LEFT JOIN tableB ON tableA.fieldID = tableB.fieldID;
So now if there are two entries in tableB for any entry in tableA I will have two results for that field, but I just want to have one (the first one or doesn't really matter) I just want to know if there is something in tableB for evetry record in tableA but don't want to know the entry.... I just want to check if there is something for each record. How can I achieve that?
Thanks,
I have a simple query:
SELECT tableA.fieldA, tableA.fieldB, tableB.fieldA FROM tableA LEFT JOIN tableB ON tableA.fieldID = tableB.fieldID;
So now if there are two entries in tableB for any entry in tableA I will have two results for that field, but I just want to have one (the first one or doesn't really matter) I just want to know if there is something in tableB for evetry record in tableA but don't want to know the entry.... I just want to check if there is something for each record. How can I achieve that?
Thanks,