Hi All,
I need to implement the below SQL Query inside dataflow in BODS and Load the data into a Temporary Table. Can anyone suggest me step by step process.
select 'Eval_Revenue' as APPLICATION_NAME,
'On Track' AS KPI_TYPE,NULL AS KPI_VALUE, NULL as PTYPE,
(convert(decimal(15,0), (sum(NetRevenue)/1000)*0.08) -isnull(A.KPI_NUMBERS,0)) as KPI_NUMBERS,
b.customername from AlexDM.dbo.vwSVEvalMasterDashBoard B,(select
convert(decimal(15,0), sum(NetRevenue)/1000) as KPI_NUMBERS,customername from AlexDM.dbo.vwSVEvalMasterDashBoard
where EvalStatusName IN ( 'Complete') and
EvalQuarterSK between DATEADD(q, DATEDIFF(q, 0, getdate()), 0) and
DATEADD(d, -1, DATEADD(q, DATEDIFF(q, 0, getdate()) + 1, 0)) group by customername)A
where
EvalQuarterSK between DATEADD(q, DATEDIFF(q, 0, getdate()), 0) and DATEADD(d, -1, DATEADD(q, DATEDIFF(q, 0, getdate()) + 1, 0))
and A.customername = B.customername
group by B.customername,A.KPI_NUMBERS
regards
karthik