Aleniko
Hi;
I'm using this command:
SELECT polgr.pono,po.podate as podate,polgr.design,polgr.qopen,IIF(isnull(poarrivals.design)," ","Y") ;
FROM;
krcbp!polgr ;
LEFT JOIN krcbp!po ;
ON polgr.pono = po.pono ;
LEFT JOIN poarrivals ;
ON polgr.pono = poarrivals.pono ;
WHERE polgr.design = "SU-115" AND polgr.qopen <> 0;
ORDER BY podate
But I'm trying to get only the FIRST result from the poarrivals table. I need to show "Y" if there are any entries in the poarrivals table. Instead, I'm getting multiple results (Because there are multiple entries in the poarrivals table)
I tried to use group by but I was getting errors.
Can someone give me the right syntax
Thanks.