Mar 14, 2004 #1 wawanz Programmer Aug 29, 2002 62 ID Hi, if I wanted to select the top 100 records I do it with this query: "SELECT TOP 100 * FROM "... My question is: what if I want to delete the top 100 records, can I do that? What's the query? Thanks
Hi, if I wanted to select the top 100 records I do it with this query: "SELECT TOP 100 * FROM "... My question is: what if I want to delete the top 100 records, can I do that? What's the query? Thanks
Mar 14, 2004 #2 ArtieChoke Programmer Feb 16, 2004 792 US If you have a unique id, then you can use a sub-query: delete from where id in (SELECT TOP 100 id FROM ) "I think we're all Bozos on this bus!" - Firesign Theatre Upvote 0 Downvote
If you have a unique id, then you can use a sub-query: delete from where id in (SELECT TOP 100 id FROM ) "I think we're all Bozos on this bus!" - Firesign Theatre