I have this table i mimer:
ID NumberID Time
1 1 1000
2 1 1000
3 1 900
4 2 950
I want to SELECT the ID with different NumberID and highest Time, but only one per Number ID.
My SELECT is as follows:
SELECT ID FROM Table AS T1
WHERE
(T1.Time= (
SELECT MAX (T2.Time) FROM Table AS T2
WHERE T2.NumberID = T1.NumberID))
this returns ID: 1, 2 and 4.
I want ta have a SELECT which returns 1 or 2 (doesnīt matter which one) and 4.
My problem is that neither FIRST or TOP works in Mimer, does anyone have a work around for that?