SELECT * FROM Table2 Where CodeID IN(SELECT CodeID FROM Table1 WHERE CompanyCode = '001') ORDER BY SubCodeId ASC
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)