I have a "sSamples" table which contains UniqueID, sDate and sID-s like:
I need the SID-s by the latest sDate and grouped by UniqueID.
Result should look like:
UniqueID | SID
---------------------
031311579 | 11641325
053600109 | 11641353
066051428 | 11641379
093468114 | 11641350
I tried with different query versions but the perfomance was very slow. What is the best solution for this?
Thanks for the answers!