SELECT TOP 1 COLUMN
FROM TABLE
WHERE ACTION='ABC'
You may need to use Order By
too, which is...
SELECT TOP 1 COLUMN
FROM TABLE
WHERE ACTION='ABC'
Order by columnnane asc/desc
note: if you don't specify the direction (ASC
/ DESC
) after the Order By, the default is ASC.