Deleting top 3 from a select [modified]
Database
2
Posts
1
Posters
0
Views
1
Watching
-
I'm trying to order a table by a datetime column (ASC) , then delete the top 3 rows. Help out the n00b. Here's what doesn't work.. DELETE TOP(3) FROM Table ORDER BY DateTime ASC DELETE TOP(3) FROM Table WHERE (SELECT * FROM Table ORDER BY DateTime ASC) i've tried hundreds of other combinations.. Thanks guys/gals.
modified on Wednesday, February 13, 2008 1:58 PM
-
I'm trying to order a table by a datetime column (ASC) , then delete the top 3 rows. Help out the n00b. Here's what doesn't work.. DELETE TOP(3) FROM Table ORDER BY DateTime ASC DELETE TOP(3) FROM Table WHERE (SELECT * FROM Table ORDER BY DateTime ASC) i've tried hundreds of other combinations.. Thanks guys/gals.
modified on Wednesday, February 13, 2008 1:58 PM