If you are trying to filter out duplicate records from your table.
SELECT DISTINCT column_name,id FROM table_name
GROUP BY coulumn_name
HAVING COUNT(column_name) > 1
The above sql would filter out duplicate records with their ids.
cheers.
sharing some useful programming tips with other developers.
If you are trying to filter out duplicate records from your table.
SELECT DISTINCT column_name,id FROM table_name
GROUP BY coulumn_name
HAVING COUNT(column_name) > 1
Copyright 2008 Splashpress Media | Converted by eBlog Templates | Blogging Pro Blogger | Designed by Design Disease
0 comments
Post a Comment