select count(licensecount) from table1,table2,table3 where table2.sameid= table3.sameid and table2.id = table1.id
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)