请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
yzm742603(uid:684835)
职业资格认证:尚未取得认证
  • SELECT 会计年度,会计期间,民航快报统计口径(科目),sum(借方本币金额) from(SELECT *from (SELECT A.ACCOUNTCODE as 科目代码,A.PERIODV as 会计期间,A.NOV as 凭证号,A.YEARV as 会计年度,A.LOCALCREDITAMOUNT as 贷方本币金额,A.LOCALDEBITAMOUNT as  借方本币金额,A.EXPLANATION as 摘要,A.PK_VOUCHERTYPEV,A.ASSID,A.PK_DETAIL,A.PK_ACCOUNTINGBOOK,A.PK_ORG,A.PK_ACCASOA,A.PK_ACCCHART,N.DISPNAME as 科目名称,O.user_name AS 制单人, B.NAME AS 财务组织, C.NAME AS 凭证类别, D.FILE_ID AS 数据交换平台传递编号,F.NAME as 收支项目,G.NAME as 部门辅助,H.NAME as 预算机构,I.NAME AS 机型辅助,M.name as 根会计科目,M.BEGINPERIOD as 开始时间, case when I.NAME in ('A319-100','A320-200','A321-251NX') then '客机' when I.NAME='B737-300' then '货机' else '客机' end as 机型,CASE WHEN D.FILE_ID IS NULL THEN 'NC模块来源'when  length(nvl(D.FILE_ID,''))=16 then '收入结算系统' else '成本结算系统' end  as 单据来源系统,CASE WHEN instr(D.FILE_ID,'CBYT')>0 then '计提' else '调整' end as "计提/调整",case when D.FILE_ID in ('SY01_HXFJ20220400054','SY01_HXFJ20220100096','SY01_HXFJ20210700040','SY01_HXFJ20200700276') then  '核销账单' when instr(D.FILE_ID,'SY01_HX')>0  then '核销账单' else '结算账单' end as 账单类型,case when instr(A.ACCOUNTCODE,'640108')>0 then '起降费'  when instr(A.ACCOUNTCODE,'640137')>0 then '航务管理费'when instr(A.ACCOUNTCODE,'640102')>0 then '航油成本'when instr(A.ACCOUNTCODE,'640116')>0 then '餐食成本'when instr(A.ACCOUNTCODE,'640137')>0 then '航务管理费'when instr(A.ACCOUNTCODE,'640119')>0 then '不正常航班费用'when instr(A.ACCOUNTCODE,'640104')>0 then '民航发展基金' when instr(A.ACCOUNTCODE,'640135')>0 then '机组费用'when instr(A.ACCOUNTCODE,'640105')>0 then '非例行检查费'else '其他' end as "民航快报统计口径(科目)" FROM GL_DETAIL ALEFT JOIN (SELECT B.PK_CORP,B.NAME FROM ORG_CORP B)B ON B.PK_CORP=A.PK_ORGLEFT JOIN (SELECT C.PK_VOUCHERTYPE,C.NAME from  BD_VOUCHERTYPE C )C ON C.PK_VOUCHERTYPE=A.PK_VOUCHERTYPEVLEFT JOIN (SELECT D.FILE_ID,D.PK_DETAIL from V_GL_DETAIL D)D ON D.PK_DETAIL= A.PK_DETAILLEFT JOIN  GL_DOCFREE1 E on  A.ASSID=E.ASSID LEFT JOIN  BD_INOUTBUSICLASS F ON  E.F8=F.PK_INOUTBUSICLASSLEFT JOIN  ORG_DEPT  G ON  E.F1=G.PK_DEPTLEFT JOIN  ORG_DEPT  H ON  E.F26=H.PK_DEPTLEFT JOIN  BD_DEFDOC  I ON  E.F22=I.PK_DEFDOC left join (SELECT M.BEGINPERIOD,M.PK_ACCCHART,M.name FROM  BD_ACCCHART M )M ON A.PK_ACCCHART=M.PK_ACCCHARTLEFT JOIN (SELECT N.PK_ACCASOA,N.DISPNAME from BD_ACCASOA N)N ON N.PK_ACCASOA= A.PK_ACCASOA LEFT JOIN (SELECT O.user_name,O.cuserid from sm_user O)O ON O.cuserid= A.PK_PREPAREDV)WHERE PK_ORG='00016810000000001RZ7' and 根会计科目='长龙科目体系_根科目表' and 开始时间='2022-01-01'  and 会计年度='2022' and  单据来源系统<>'收入结算系统' and 凭证号<>'0')group by 会计年度,会计期间 
  • 以下为SQLSELECT *FROM (SELECT F_YUE as 月份,F_NIAN as 年度,SUM(F_FYJE30) AS 航油消耗,SUM(F_FYJE5) AS 起降服务费,SUM(F_FYJE18) AS 头等舱服务费,SUM(F_FYJE26) AS 餐食机供品,SUM(F_FYJE20) AS 民航发展基金,SUM(F_FYJE21) AS 不正常航班费用,SUM(F_FYJE9) AS 客货邮行赔偿费,SUM(F_FYJE24) AS 机组食宿费用,SUM(F_FYJE17) AS 系统使用费,SUM(F_FYJE25) AS 飞行小时费,SUM(F_FYJE10) AS 代理手续费,SUM(F_FYJE105) AS 机务维修成本,SUM(F_FYJE62) AS 客舱服务费,SUM(F_FYJE296) AS BSP处理费,SUM(F_FYJE382) AS 其他变动成本,F_JXID as 机型代码,0,(SELECT F_JXDM FROM GG_FJJX WHERE F_JXID=A.F_JXID) AS 机型, case when length(F_YUE)=1 then to_char(F_NIAN)||'-'||'0'||to_char(F_YUE) else to_char(F_NIAN)||'-'||to_char(F_YUE) end as 月份2 FROM (SELECT /*+INDEX(A)*/F_YUE,F_NIAN,F_FYJE30,F_FYJE5,F_FYJE18,F_FYJE26,F_FYJE20,F_FYJE21,F_FYJE9,F_FYJE24,F_FYJE17,F_FYJE25,F_FYJE10,F_FYJE105,F_FYJE62,F_FYJE296,F_FYJE382,F_JXID,F_LJHD FROM FX_ZHFXB A  WHERE  F_CYGS IN (1,2)) A WHERE 1=1 GROUP BY F_YUE,F_NIAN,F_JXID ORDER BY F_YUE NULLS FIRST,F_NIAN NULLS FIRST,F_JXID NULLS FIRST)UNPIVOT ( 金额 FOR 成本项目 IN ("航油消耗","起降服务费","头等舱服务费","餐食机供品","民航发展基金","不正常航班费用","客货邮行赔偿费","机组食宿费用","系统使用费","飞行小时费","代理手续费","机务维修成本","客舱服务费","BSP处理费","其他变动成本")) WHERE 年度='2022' and 月份='09' AND 金额<>0
  • SQL语句书写.zip详细描述详见附件
  • SELECT ACCOUNTCODE,PERIODV,NOV,YEARV,LOCALCREDITAMOUNT,LOCALDEBITAMOUNT,EXPLANATION,PK_VOUCHERTYPEV,ASSID,PK_DETAIL,PK_ACCOUNTINGBOOK,PK_ORG,PK_ACCASOA ,(SELECT NAME FROM ORG_CORP WHERE GL_DETAIL.PK_ORG=ORG_CORP.PK_CORP and NAME='A公司') as 财务组织,(SELECT NAME from  BD_VOUCHERTYPE WHERE GL_DETAIL.PK_VOUCHERTYPEV=BD_VOUCHERTYPE.PK_VOUCHERTYPE) as 凭证类别,(SELECT FILE_ID from V_GL_DETAIL WHERE GL_DETAIL.PK_DETAIL= V_GL_DETAIL.PK_DETAIL) as 数据交换平台传递编号 FROM  GL_DETAIL LEFT JOIN GL_DOCFREE1 WHERE  GL_DETAIL.ASSID=GL_DOCFREE1.ASSID
  • select * from  (SELECT distinct F_HD, F_FLIGHTAIRLINENO, F_KSRQ, F_DISTANCE, F_DRBZ  FROM GG_ZDHLF_HXK WHERE 1=1 and F_HD='HGH-CTU'ORDER BY F_HD,F_KSRQ DESC,F_FLIGHTAIRLINENO ) t where F_KSRQ in (select max(F_KSRQ) from t group by F_KSRQ
  • 详见附件不同的合计方式合计列金额不一致.zip
  • 在自助数据集处理中,如何按照出现的次数进行列示,比如第一次出现,显示1,第二次出现显示,依次类推,通过什么公式处理?详见截图
  • 格式调整问题.zip

71

6

71

10

个人成就
内容被浏览26,596
加入社区3年198天
返回顶部