how do i delete multiple records in a table, for example if i have a table that as serial_num 123 twice, how do i delete the two records, basically i don't want to delete one record, i want to delete the two records. Thanks.
Here is a copy of my database, basically, I came up with another idea but i can't fiqure out how to do it,
in the sample i have a how_to_do_it_qry, what i want to do is exclude any serial_num that has more than one record, the idea is to have " Having count(serial_num)<2;
but it's not working could you please guys try it.
again i want to exclude all serial_num that have count = 2 or more, thanks.
DELETE * FROM change_order_tbl
WHERE serial_num IN
(SELECT change_order_tbl.serial_num
FROM change_order_tbl
GROUP BY change_order_tbl.serial_num
HAVING Count(change_order_tbl.serial_num)>1;);
DELETE * FROM change_order_tbl
WHERE serial_num IN
(SELECT change_order_tbl.serial_num
FROM change_order_tbl
GROUP BY change_order_tbl.serial_num
HAVING Count(change_order_tbl.serial_num)>1;);