I'm aware that subqueries are not implemented yet or that they can be converted to a join, but I'm not sure if I can do it with this query. I was thinking dynamic lists, but I'm stuck when I try to set the relation collection because it needs to use PKs. (Selfservicing)
lot is a historic table that contains...well lot information.
What the query does is it selects the latest information (max(cdate)) for specific lots.
select autoid, code, cdate, etc, etc
from lot, (select max(cdate) as maxcdate, code from lot where code IN ('a01', 'a02', 'a03') group by code) as mx
WHERE lot.code=mx.code AND maxcdate=lot.cdate
Could someone point me in the right direction, or flat out tell me it can't be done?
Thanks!