;with CTE as
(select familyID, ParentEmail, Parentpassword, Adusername, Adpassword, firstname, lastname, nameID,
row_number() over (partition by ParentEmail order by familyID) as Row
where Row = 1;
Will that give you what you need?
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon