The select works fine. Adding the insert into causes it to hang. How do I get the results into a new table?
INSERT INTO table3 (
id,lastn,firstn,addr3,state)
SELECT t1.id,t1.lastn,t1.firstn,addr3,t1.state
FROM cust t1
INNER JOIN(
SELECT lastn+firstn+state+addr3 AS dupmatch FROM cust
GROUP BY lastn+firstn+state+addr3
HAVING(COUNT(*) > 1)) AS t2
ON t1.lastn+t1.firstn+t1.state+t1.addr3 = t2.dupmatch
WHERE t1.country='000'
AND t1.email='';
INSERT INTO table3 (
id,lastn,firstn,addr3,state)
SELECT t1.id,t1.lastn,t1.firstn,addr3,t1.state
FROM cust t1
INNER JOIN(
SELECT lastn+firstn+state+addr3 AS dupmatch FROM cust
GROUP BY lastn+firstn+state+addr3
HAVING(COUNT(*) > 1)) AS t2
ON t1.lastn+t1.firstn+t1.state+t1.addr3 = t2.dupmatch
WHERE t1.country='000'
AND t1.email='';