larrydavid
Programmer
Hello,
I have a resultset which is returning records that may have two on one MemberID:
Any help would be greatly appreciated.
Thanks and Regards,
Larry
I have a resultset which is returning records that may have two on one MemberID:
Code:
Current Output:
[MemberID] [Category] [Type]
12345 ABC test
12345 XYZ test
12777 ABC test
12888 FGD test
Desired Output:
[MemberID] [Category] [Type]
12345 ABC test
12777 ABC test
12888 FGD test
Query:
SELECT m.MemberID,
vw.Category,
vw.Type,
FROM dbo.TestVW vw JOIN
dbo.TestMember m ON vw.MemberKey = m.MemberKey
WHERE vw.Type = 'test'
GROUP BY m.MemberID,
vw.Category,
vw.Type
Any help would be greatly appreciated.
Thanks and Regards,
Larry