Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.
SELECT t_Dtail.ItemID, Max(t_Dtail.tdate) AS MaxDate FROM t_Dtail WHERE (((t_Dtail.ActiveYN)=True)) GROUP BY t_Dtail.ItemID;
select a.* from t_dtail as a inner join (select max(b.tdate) as maxtdate, b.itemid from t_dtail as b group by b.itemid,b.ActiveYN having b.ActiveYN= true ) as c on a.itemid = c.itemid and a.tdate=c.maxtdate