《电子专票和纸质专票最高开票限额不一致的户数.docx》由会员分享,可在线阅读,更多相关《电子专票和纸质专票最高开票限额不一致的户数.docx(2页珍藏版)》请在优知文库上搜索。
1、电子专票和纸质专票最高开票限额不一致的户数withhas(SE1.ECTHDQCXH,A.NSRDZDAH,SHXYDM,NSRSBHzNSRMC,B.FPZ1.mc,A.DFFPZGKPXEJDzA.DFFPZGKPXE,MyzggpslMczggpslYXQQ,YXQZ,NSR.SWJG_DM,nsr.swjgmc,nsr.SSG1.YSWRYMCswry,NSR.SSG1.YSWRY_DM,nsr.dsswjg-dmznsr.dsswjgmcznsr.qxswjgmc,A.1.RRQ,B.ZPPZ_IDFROMSJCK_BZ.FP_PZHDXXAINNERJOINSJCK_BZ.WD_F
2、PZ1.BONA.FPZ1._ID=B.FPZ1._IDInnerjoin(selectnsr.nsrdzdahzNSR.SWJGJD,NSR.SWJG_DM,NSR.SSG1.YSWRY_DM,nsr.SSG1.YSWRYMCzNSR.swjgmc,nsr.dsswjg-dmznsr.dsswjgmc,nsr.qxswjgmcFROMSJCK_BZ.WD_NSRXXNSRWHERENSR.KQCCSZTDJBZ=NANDNSR.KZZTDJ1.XJD=(selectCASEWHENCOUNT(I)=1THENDAE2018-10-01,E1.SEDATE,2018-08-01ENDDATE_
3、1.RRQSWJGCC1.X_BJ=,fromWD_SWJGWherejGJCJD=lOlANDANDSWJGJDINa.nsrdzdaha.swjgmca.swrya.FPZ1.mca.DFFPZGKPXEA.YXQQA.YXQZa.dsswjgmca.qswjgmcFROMhA(,16300000000,z,15400000000,16500000000)NSRONA.NSRDZDAH=NSR.NSRDZDAHWHEREB.ZPPZJDIN(,9,)ANDA.YXQQ=trunc(sysdate)ANDA.YXQZA.YXQQ)SE1.ECTA.NSRMCas纳税人名称,nvl(A.SHX
4、YDM,a.NSRSBH)as社会信用代码,as纳税人电子档案号,as主管税务机关,as税收管理员,as发票种类,as单份发票最高开票限额,as有效期起,as有效期止,as地市级税务机关,as区县级税务机关Innerjoin(selectti.NsrdzdahfromhTlInnerjoinhT2ONT1.NSRDZDAH=T2.NSRDZDAHANDT2.ZPPZJD=9,WHERET1.ZPPZJD=,1,ANDT1.DFFPZGKPXET2.DFFPZGKPXEGROUPBYT1.NSRDZDAH)BONA.NSRDZDAH=B.NSRDZDAHwherea.dsswjg_dm=dsswjg_dm