I am trying to wrap my head around this one this morning.
I am trying to show inventory status for parts (for our products) and this query only becomes
inventory
SELECT * FROM (SELECT i.*, ROW_NUMBER() OVER(PARTITION BY ldPart ORDER BY ldDate DESC) r FROM inventoryReport i WHERE ldPart in ('ABC123', 'BFD21', 'AA123', etc) ) WHERE r = 1