You can use ORDER BY and TOP:
ORDER BY
TOP
select top (1) a.* from [AX2012_PROD].[dbo].[AAALTLCHANGEREQUESTARCHIVE] a where a.AAAREFNUMVALUE = '17743965' and a.AAASENTTOLTL = '1' order by CREATEDDATETIME desc;
1.4m articles
1.4m replys
5 comments
57.0k users