I want to be able to delete records from a table where ID is from 7970 to 9805 if sales amount is between 200 and 850.
I need your help.
Thank you in advance.
Here’s my individual mysql delete statements.
DELETE FROM `fin_sales` WHERE `sale_id` BETWEEN 7970 AND 9805;
DELETE FROM `fin_sales` WHERE `total` BETWEEN 200 AND 850;
but its not working
2
Answers
I believe, you need to make one delete statement as below:
I have not tested it so use it on your own discretion
Please try the below query