Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!
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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.