tbl_std(std_id,std_name,section_name)
tbl_division(div_id,div_name,std_id,)
tbl_third(std_id,div_id,field_1,field_2
std_id
tbl_std
div_id
tbl_div
tbl_third
insert into tbl_third(std_id,div_id,field_1,field_2) select a.div_id,b.std_id,'1' as Field1,'2' as Field2 from tbl_division as a inner join tbl_std as b on a.std_id=b.std_id
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)