select Datasource_id,Commitment-y.total as Requirement,DataSourceName(
select y.total as count1,DataSourceId from
(Select sum(X.applicantid) As total,X.DataSourceId
from (
select r.DataSourceId,COUNT(*) applicantid
from RCNewApplicants r Where EntryBY=17 group by r.DataSourceId
union all
select DataSourceId, COUNT(*) applicantid from UploadCsvFile where
CreatedBy=17 group by DataSourceId
) as X group by X.DataSourceId) as y ) From SourceMaster
i am getting error while executing the query.please help me to sort out the problem.it;s very urgent
vijaya