經濟指標表公式

2021-06-05 16:14:40 字數 4273 閱讀 5668

select c.*,d.orderthisyearacc,d.capreturnthisyearcum,d.capspentthisyearcum,d.outputthisyearcum,d.salesthisyearcum,a.ordertruacc,a.capreturntrucum,a.outputtrucum,

a.salestrucum,a.acctrucum,a.capspenttrucum,

b.orderplanvalue,b.capreturnplanvalue,b.capspentplanvalue,b.outputplanvalue,b.salesplanvalue,b.accplanvalue,b.accoverplanvalue,b.acclastmonthplanvalue,b.acclastmonthtruvalue,

b.chunhuolastmonthplanvalue,b.chunhuolastmonthtruvalue

from (select a.department,

sum(isnull(ordertruvalue,0)) ordertruacc,

sum(isnull(capreturntruvalue,0)) capreturntrucum,

sum(isnull(outputtruvalue,0)) outputtrucum,

sum(isnull(salestruvalue,0)) salestrucum,

sum(isnull(acctruvalue,0)) acctrucum,

sum(isnull(capspenttruvalue,0)) capspenttrucum

from dbo.indicatorsinput a

inner join dbo.indicatorsinputitme b

on a.mainid =b.mainid

--[@ and a.year=:year @] [@ and a.month<=:month @]

and a.year=2012 and a.month=2

group by a.department) a

right join

(select a.department,

sum(isnull(orderplanvalue,0)) orderplanvalue,

sum(isnull(capreturnplanvalue,0)) capreturnplanvalue,

sum(isnull(capspentplanvalue,0)) capspentplanvalue,

sum(isnull(outputplanvalue,0)) outputplanvalue,

sum(isnull(salesplanvalue,0)) salesplanvalue,

sum(isnull(accplanvalue,0)) accplanvalue,

sum(isnull(accoverplanvalue,0)) accoverplanvalue,

sum(isnull(acclastmonthplanvalue,0)) acclastmonthplanvalue,

sum(isnull(acclastmonthtruvalue,0)) acclastmonthtruvalue,

sum(isnull(chunhuolastmonthplanvalue,0)) chunhuolastmonthplanvalue,

sum(isnull(chunhuolastmonthtruvalue,0)) chunhuolastmonthtruvalue

from dbo.indicatorsinput a

inner join dbo.indicatorsinputitme b

on a.mainid =b.mainid

--[@ and a.year=:year @] [@ and case :month of 1 : a.month=1 else a.month=:month-1 @]

and a.year=2012 and a.month=2

group by a.department ) b

on a.department=b.department

right join

(select a.department,

sum(isnull(ordertruvalue,0)) ordertruvalue,

sum(isnull(ordernextmonplan,0)) ordernextmonplan,

sum(isnull(capreturnnextmonplan,0)) capreturnnextmonplan,

sum(isnull(capreturntruvalue,0)) capreturntruvalue,

sum(isnull(capspentnextmonplan,0)) capspentnextmonplan,

sum(isnull(capspenttruvalue,0)) capspenttruvalue,

sum(isnull(outputtruvalue,0)) outputtruvalue,

sum(isnull(outputnextmonplan,0)) outputnextmonplan,

sum(isnull(salesnextmonplan,0)) salesnextmonplan,

sum(isnull(salestruvalue,0)) salestruvalue,

sum(isnull(accnextmonplan,0)) accnextmonplan,

sum(isnull(acctruvalue,0)) acctruvalue,

sum(isnull(accovertruvalue,0)) accovertruvalue,

sum(isnull(acczztsplanvalue,0)) acczztsplanvalue,

sum(isnull(acczztstruvalue,0)) acczztstruvalue,

sum(isnull(chunhuoplanvalue,0)) chunhuoplanvalue,

sum(isnull(chunhuotruvalue,0)) chunhuotruvalue,

sum(isnull(chunhuoljxscbplanvalue,0)) chunhuoljxscbplanvalue,

sum(isnull(chunhuoljxscbtruvalue,0)) chunhuoljxscbtruvalue,

sum(isnull(chunhuoljzztsplanvalue,0)) chunhuoljzztsplanvalue,

sum(isnull(chunhuoljzztstruvalue,0)) chunhuoljzztstruvalue

from dbo.indicatorsinput a

inner join dbo.indicatorsinputitme b

on a.mainid =b.mainid

-- [@ and a.year=:year @] [@ and a.month=:month @]

and a.year=2012 and a.month=2

group by a.department) c

on b.department=c.department

left join

(select a.department,

sum(isnull(orderthisyearacc,0)) orderthisyearacc,

sum(isnull(capreturnthisyearcum,0)) capreturnthisyearcum,

sum(isnull(capspentthisyearcum,0)) capspentthisyearcum,

sum(isnull(outputthisyearcum,0)) outputthisyearcum,

sum(isnull(salesthisyearcum,0)) salesthisyearcum

from indicatorsinputplaninfobyyear a

inner join indicatorsinputplaninfobyyearitem b

on a.mainid =b.mainid

--[@ and a.year=:year @]

and a.year=2012

group by a.department

) don c.department=d.department

國家經濟指標的含義

國家經濟指標的含義 ppi 生產者物價指數 說明了生產原料的 的情況,這樣可以用來衡量各種不同的商品在不同的生產階段的 的變化情況,各國是通過統計局來向各個大的生產商蒐集各種商品的 在通過自己的計算方法來計算出百分數以便比較。現在美國公布的資料以 1967 年的指數當作 100 來計算,這個指標由勞...

美國主要經濟指標 1

美國主要經濟指標 美國是世界經濟中最重要的組成部分,其經濟的好壞將對全球經濟的穩定和發展產生巨大的影響,為此研究分析美國經濟指標是我們了解世界經濟形勢乙個有效手段,也是 短期波動的最主要影響因素。美國公布的經濟指標主要包括了以下幾大部分內容 國民收入和生產 工業生產和訂單 固定資本投資與建築 就業與...

美國主要經濟指標 4

美國主要經濟指標 4 14 零售銷售指數 retail sales index 凡以現金或信用卡方式付帳的商品交易均是零售業的業務範圍,但服務業並不包括在內。美國商務部統計局每個月進行一次全國性零售業抽樣調查,其調查物件為各種型態 和規模的零售業 均為商務部登記有案的公司 因為零售業範圍太廣,因而採...