select a.customer from CustomerMaster as c,PMReg as p where a.active=p.active and a.customer not in (select customer from PMReg)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)