Hello All,
It's Very urgent for me !!!!
Problem Description :
I have two table 1) user 2) userInfo
I want to Find Duplicate user, For that I write one Query is
SELECT ub.userId, ub.username, COUNT(ub.username) AS userInfo_NumOccurrences
FROM userinfo AS ub
GROUP BY ub.username, ub.AffiId
HAVING (COUNT(ub.username) > 1) ;
Its Showing Two duplicate username but Also i want compare affId of duplicate users For Example :
user table | userInfo table
user.username = userInfo.username
user.affId = userInfo.affId
If Both are Same then n then it will be consider as duplicate records
So how can i write query for that ? ? ? ?? ? ?? Or any modificationon above query ????
