Hi,
Here i am going to fetch same column name from 3diff tables with same where condition. Is any other way to write the below code.
set @datas =(select ACCOUNT,FACILITY,VERSION,TIMEID,SIGNEDDATA from dbo.tblFAC2PLANNING union all select ACCOUNT,FACILITY,VERSION,TIMEID,SIGNEDDATA from dbo.tblFACTPLANNING union all select ACCOUNT,FACILITY,VERSION,TIMEID,SIGNEDDATA from dbo.tblFACTWBPLANNING) where version='Actual' and facility='FA_00'