|
|
发表于 2009/9/25 08:29:43
|
显示全部楼层
SELECT
SUBSTRING(b.MasterAccount, 8, 6) AS ActItem
, SUBSTRING(b.MasterAccount, 1, 6) AS DeptNo
, a.FiscalYear AS FYear
,a.ActivityType AS Type
,a.Period0ActivityAmount AS P0 --年初余额
,a.Period1ActivityAmount AS P1
,a.Period2ActivityAmount AS P2
,a.Period3ActivityAmount AS P3
,a.Period4ActivityAmount AS P4
,a.Period5ActivityAmount AS P5
,a.Period6ActivityAmount AS P6
,a.Period7ActivityAmount AS P7
,a.Period8ActivityAmount AS P8
,a.Period9ActivityAmount AS P9
,a.Period10ActivityAmount AS P10
,a.Period11ActivityAmount AS P11
,a.Period12ActivityAmount AS P12
,a.Period13ActivityAmount AS P13
--,a.ActivityLastMaintainedDate AS UpdDate
FROM
FSDBMR.dbo.FS_GLActualBudgetActivity a ,
FSDBMR.dbo.FS_GLMasterAccount b
WHERE
a.GLMasterAccountKey = b.GLMasterAccountKey
AND a.ActivityType='AA' |
|