How to delete multiple records

  • Thread starter Thread starter pranesh
  • Start date Start date
P

pranesh

Guest
Hi,

I'm trying to delete say 4000 records, out of total 5000 records. I want to keep 1000 records based on the ID.

How can I write the SQL DELETE query, so that only 1000 records remain based on the query?

Thank you in advance for your great help.

regards,
Pranesh
Alberta, Canada
 
pranesh said:
Hi,

I'm trying to delete say 4000 records, out of total 5000 records. I want to keep 1000 records based on the ID.

How can I write the SQL DELETE query, so that only 1000 records remain based on the query?

Thank you in advance for your great help.

regards,
Pranesh
Alberta, Canada

First create a select query that selects the records you want to delete. then just turn that into a Delete query.
 

Users who are viewing this thread

Back
Top Bottom