SELECT MobileNo FROM YourTable As T WHERE Service = 'abc' And Not Exists ( SELECT 1 FROM YourTable As T2 WHERE T2.MobileNo = T.MobileNo And T2.Service != 'abc' ) ;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)