Hi,
My following query returns all data having duplicate data based on LastName + Last 4 Char of Phone
Select LastName , SUBSTR(Trim(Phone),Length(Trim(Phone))-3,4) as PhoneSuffix, Count(*)
from Table1
Group by LastName, SUBSTR(Trim(Phone),Length(Trim(Phone))-3,4)
having count(*) > 1
As each of these duplicate row has key valud field called ID which is not duplicate. How I can get the list of all ID's belongs to the above criteria.
Thanks
Shafiq
My following query returns all data having duplicate data based on LastName + Last 4 Char of Phone
Select LastName , SUBSTR(Trim(Phone),Length(Trim(Phone))-3,4) as PhoneSuffix, Count(*)
from Table1
Group by LastName, SUBSTR(Trim(Phone),Length(Trim(Phone))-3,4)
having count(*) > 1
As each of these duplicate row has key valud field called ID which is not duplicate. How I can get the list of all ID's belongs to the above criteria.
Thanks
Shafiq