This request is not bad at all. Was thinking, I could not have. But it is not exactly what I need. In fact, it tells me for each record the same registration number (2,3,4 ,...).
Example,
Salman Khan - 3
Amir Khan - 2
Sameer Khan - 7 ;-)
I have all the information for these duplicates. (as society, the city ,...). For example, to see the 3 recordings of Salman Khan, so I can see which is correct, and which I can delete. And this, according to factors in addition, as the city and society.
Not much, but here's the basic code received by CitricAcid(thank you to him) with city and company ... Maybe it'll help a little to help
PHP Code:
select upper(last_name), upper(first_name), society, city, count(id) from thetable group by upper(last_name), upper(first_name) having count(id) > 1
Bookmarks