Well, I spent some time yesterday upgrading MySQL and my phpMyAdmin, and this query still isn't working:
DELETE FROM charge_codes WHERE code IN (
SELECT code
FROM charge_codes
GROUP BY code
HAVING count( * ) >1
)
LIMIT 1
I get this error:
MySQL said:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT code
FROM reynolds_charge_codes
GROUP BY code
HAVING co
Any ideas? I realize I could have and still could write a PHP script to accomplish the same thing in far less time, but I want to try and do this directly in MySQL and learn a little something new.
Thanks