Select a.uid , a.name , mewp.data As Association from Asset a Join wshhistory wsh on a.uid = wsh.assetid Join worksheet w on wsh.wshid = w.uid left join (Select assetid, DATA From field where flddefid = '042D2105-C999-47F1-BA1B-A9BD681B8393') mewp on a.uid = mewp.assetid WHERE a.deleted = 0 and wsh.latest = 1 and a.typeid in('14EB9198-C477-4C04-8C2B-E11672322F4C','17F42849-3F9A-4852-9C90-9F54F35B57B6') and wsh.wshid in('223BB9DF-26B2-4C5E-8CC8-1D9FBAEEC8F7','E1B12C92-9C95-4757-90D8-57B6AC7BE247')
I have the following query that return the correct data.
name Association M-0024 NULL MEWP-0001B NULL MK-0007 NULL MEWP-0003 NULL MK-0001A MEWP-0001A MEWP-0004B NULL MK-0001B MEWP-0001B MK-0006 MEWP-0006 MEWP-0006 NULL MK-0005 MEWP-0004B MK-0004B MEWP-0004A M-0025 NULL MEWP-0005 NULL M-0023 NULL M-0022 NULL MEWP-0001Aa NULL MK-0008 MEWP-0004A NULL MEWP-0001A NULL MK-0004A MEWP-0003 MEWP-0002 NULL MK-0003 MEWP-0003 MK-0002 MEWP-0002When I return the data how do I eliminate the name's that are in bold but keep the association record as this is a relationship between joining tables.. Thanks Richard