realtime158
01-19-2007, 10:41 AM
Here is a SQL statement that will count all the duplicate instances of the title
SELECT SID,title,
COUNT(title) AS NumOccurrences
FROM savedsearche where post_id <> ''
GROUP BY title
HAVING ( COUNT(title) > 1 ) order by NumOccurrences desc
Now what i want to do is move all the duplicated instances to another table but keep only one
instance of the record in table where the duplicateds were found. How would you do this using mySQL
Thanks...
SELECT SID,title,
COUNT(title) AS NumOccurrences
FROM savedsearche where post_id <> ''
GROUP BY title
HAVING ( COUNT(title) > 1 ) order by NumOccurrences desc
Now what i want to do is move all the duplicated instances to another table but keep only one
instance of the record in table where the duplicateds were found. How would you do this using mySQL
Thanks...