I do have this final query (I've tried a lot of them to make this work), which i'm not able to get it run.
SELECT customerNo, rating, dateApproved
FROM ['worksheet$']
WHERE dateCreated = (SELECT MAX(dateCreated) FROM ['worksheet$'] )
AND status = 'Approved'"
For a customerNo 0001 there are two or maybe more rows, and I want to get the row where the dateApproved is the maximum for that customerNo.
How can i achieve this? It's causing me a lot of headache. Already asked a few friends and also googled, no relevant answers found.
thanks in advance