Arnoutdv said it best.
Here's a pretty version (defensive in case ctime is not distinct)
Code:DELETE MT FROM dbo.MyTable AS MT WHERE MT.id = ( SELECT TOP (1) id FROM dbo.MyTable ORDER BY ctime, id )
|
Results 1 to 5 of 5
Thread: SQL query helpThreaded View
|
Click Here to Expand Forum to Full Width |