SELECT DISTINCT Cid from Buysfrom where Bid in (select Bid from Buysfrom where Cid=569 And Hrs in(select Hrs from Buysfrom where Cid=569);
Hrs in (...)
Buysfrom
Cid=569
Hrs
Null
SELECT DISTINCT Cid FROM Buysfrom WHERE Bid In ( SELECT DISTINCT Bid FROM Buysfrom WHERE Cid = 569 And Hrs Is Not Null );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)