I need to query one table and add the different select statements to a temp table.....
create table #temp(fy, parm1, parm2)
insert into #temp(fy,parm1,parm2)
and here is where I want to provide select statements as the input for the fields...ex:
select fy from tbl1 where..., select p1 from tbl1 where..., select p2 from tbl2 where.... etc......
Is this even possible? Can anyone lead me to some documention to read?
Thanks
Gary
create table #temp(fy, parm1, parm2)
insert into #temp(fy,parm1,parm2)
and here is where I want to provide select statements as the input for the fields...ex:
select fy from tbl1 where..., select p1 from tbl1 where..., select p2 from tbl2 where.... etc......
Is this even possible? Can anyone lead me to some documention to read?
Thanks
Gary