--dw跑的表
select * from(
select 'ACPT_OCCUR_BILL_DETAIL' as n ,count(1) as c from ACPT_OCCUR_BILL_DETAIL -- where
union all
select 'ACPT_BALANCE_BILL_DETAIL' as n ,count(1) as c from ACPT_BALANCE_BILL_DETAIL -- where
union all
select 'PLEDGE_BALANCE_BILL_DETAIL' as n ,count(1) as c from PLEDGE_BALANCE_BILL_DETAIL -- where
union all
select 'DSCT_OCCUR_BILL_DETAIL' as n ,count(1) as c from DSCT_OCCUR_BILL_DETAIL -- where
union all
select 'ESCROW_BALANCE_BILL_DETAIL' as n ,count(1) as c from ESCROW_BALANCE_BILL_DETAIL -- where
union all
select 'FREE_BRANCH_CHRG_DTL' as n ,count(1) as c from FEE_BRANCH_CHRG_DTL -- where
union all
select 'ISSUE_OCCUR_BILL_DETAIL' as n ,count(1) as c from ISSUE_OCCUR_BILL_DETAIL -- where
union all
select 'ISSUE_BALANCE_BILL_DETAIL' as n ,count(1) as c from ISSUE_BALANCE_BILL_DETAIL -- where
union all
select 'PLEDGE_OCCUR_BILL_DETAIL' as n ,count(1) as c from PLEDGE_OCCUR_BILL_DETAIL -- where
union all
select 'TRANSFER_OCCUR_BILL_DETAIL' as n ,count(1) as c from TRANSFER_OCCUR_BILL_DETAIL -- where
union all
select 'PLEDGERE_OCCUR_BILL_DETAIL' as n ,count(1) as c from PLEDGERE_OCCUR_BILL_DETAIL -- where
union all
select 'PLEDGERE_BALANCE_BILL_DETAIL' as n ,count(1) as c from PLEDGERE_BALANCE_BILL_DETAIL -- where
union all
select 'RDSCT_OCCUR_BILL_DETAIL' as n ,count(1) as c from RDSCT_OCCUR_BILL_DETAIL -- where
union all
select 'RDSCT_BALANCE_BILL_DETAIL' as n ,count(1) as c from RDSCT_BALANCE_BILL_DETAIL -- where
union all
select 'FOUND_ACCOUNT_BILL_DETAIL' as n ,count(1) as c from FOUND_ACCOUNT_BILL_DETAIL -- where
union all
select 'PROMPT_PAYMENT_BILL_DETAIL' as n ,count(1) as c from PROMPT_PAYMENT_BILL_DETAIL -- where
union all
select 'CLEAR_REG_BILL_DETAIL' as n ,count(1) as c from CLEAR_REG_BILL_DETAIL -- where
union all
select 'BUYOUT_OCCUR_BILL_DETAIL' as n ,count(1) as c from BUYOUT_OCCUR_BILL_DETAIL -- where
union all
select 'BUYOUT_BALANCE_BILL_DETAIL' as n ,count(1) as c from BUYOUT_BALANCE_BILL_DETAIL -- where
union all
select 'ENDOR_BILL_DETAIL' as n ,count(1) as c from ENDOR_BILL_DETAIL -- where
union all
select 'DSCT_BALANCE_BILL_DETAIL' as n ,count(1) as c from DSCT_BALANCE_BILL_DETAIL -- where
union all
select 'CLEAR_SETTLE_BILL_DETAIL' as n ,count(1) as c from CLEAR_SETTLE_BILL_DETAIL -- where
union all
select 'RECOURSE_BILL_DETAIL' as n ,count(1) as c from RECOURSE_BILL_DETAIL -- where
union all
select 'BRANCH_INFO_DETAIL' as n ,count(1) as c from BRANCH_INFO_DETAIL -- where
union all
select 'RETURN_DISCOUNT_REDEMPTION_DETAIL' as n ,count(1) as c from RETURN_DISCOUNT_REDEMPTION_DETAIL -- where
union all
select 'LIFTING_PLEDGE_DETAIL' as n ,count(1) as c from LIFTING_PLEDGE_DETAIL -- where
union all
select 'GUARANTEE_INFORMATION_DETAIL' as n ,count(1) as c from GUARANTEE_INFORMATION_DETAIL -- where
union all
select 'DM_ELEC_BUSI_VOL' as n ,count(1) as c from DM_ELEC_BUSI_VOL -- where
union all
select 'DM_ELEC_ENDORSE_VOL' as n ,count(1) as c from DM_ELEC_ENDORSE_VOL -- where
union all
select 'DM_DSCT_BALANCE_STATISTICS' as n ,count(1) as c from DM_DSCT_BALANCE_STATISTICS -- where
union all
select 'DM_BILL_TRAFFIC_VOL' as n ,count(1) as c from DM_BILL_TRAFFIC_VOL -- where
) a
--交易系统跑的表
select *
from (
select 'ACC_HANG_INF' as n ,count(1) as c from ACC_HANG_INF -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ACC_INF' as n ,count(1) as c from ACC_INF -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select'ACC_POST_DTL' as n ,count(1) as c from ACC_POST_DTL -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ACC_POST_PND_DTL' as n ,count(1) as c from ACC_POST_PND_DTL -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'FEE_BRANCH_CHRG_DTL' as n ,count(1) as c from FEE_BRANCH_CHRG_DTL -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'PRM_BRANCH_DEF' as n ,count(1) as c from PRM_BRANCH_DEF -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'STL_DELIVERY_ORDER' as n ,count(1) as c from STL_DELIVERY_ORDER -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'STL_DLV_ORDER_SUM' as n ,count(1) as c from STL_DLV_ORDER_SUM -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'REL_OC_DRAFT_T' as n ,count(1) as c from REL_OC_DRAFT_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'REL_TRD_DRAFT_T' as n ,count(1) as c from REL_TRD_DRAFT_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'REL_ZTX_CD_T' as n ,count(1) as c from REL_ZTX_CD_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'TRD_CLOSING_PRICE_T' as n ,count(1) as c from TRD_CLOSING_PRICE_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'TRD_DIALOGUE_T' as n ,count(1) as c from TRD_DIALOGUE_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'TRD_INTENT_RFQ_T' as n ,count(1) as c from TRD_INTENT_RFQ_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'TRD_MATCH_DIA_T' as n ,count(1) as c from TRD_MATCH_DIA_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'TRD_ONECLICK_T' as n ,count(1) as c from TRD_ONECLICK_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'TRD_REPO_DEAL_T' as n ,count(1) as c from TRD_REPO_DEAL_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'TRD_TD_DEAL_T' as n ,count(1) as c from TRD_TD_DEAL_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'TRD_ZTX_DEAL_T' as n ,count(1) as c from TRD_ZTX_DEAL_T -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_ACT_GRNT' as n ,count(1) as c from CDRS_ACT_GRNT -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_ACT_IMPAWN' as n ,count(1) as c from CDRS_ACT_IMPAWN -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_ACT_RDMREDSCT' as n ,count(1) as c from CDRS_ACT_RDMREDSCT -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_ACT_RECOURSE' as n ,count(1) as c from CDRS_ACT_RECOURSE -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_ACT_RECOURSE' as n ,count(1) as c from CDRS_ACT_RECOURSE -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_INF_ACUT_COUNT' as n ,count(1) as c from CDRS_INF_ACUT_COUNT -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_INF_CDINFO' as n ,count(1) as c from CDRS_INF_CDINFO -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_INF_ECDINFO' as n ,count(1) as c from CDRS_INF_ECDINFO -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_INF_PAPERINFO' as n ,count(1) as c from CDRS_INF_PAPERINFO -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_INF_STICKY' as n ,count(1) as c from CDRS_INF_STICKY -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_OFFLINE_RECOURSE' as n ,count(1) as c from CDRS_OFFLINE_RECOURSE -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_ORD_OWNCH' as n ,count(1) as c from CDRS_ORD_OWNCH -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_RPT_MEMBER_ACC' as n ,count(1) as c from CDRS_RPT_MEMBER_ACC -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_RQ_DSCT' as n ,count(1) as c from CDRS_RQ_DSCT -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CDRS_RQ_STCHG' as n ,count(1) as c from CDRS_RQ_STCHG -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'CPES_BANK_DATA' as n ,count(1) as c from CPES_BANK_DATA -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'PM_INF_ACCOUNT' as n ,count(1) as c from PM_INF_ACCOUNT -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'PM_INF_BRANCH' as n ,count(1) as c from PM_INF_BRANCH -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'PM_INF_BRANCHMERGE' as n ,count(1) as c from PM_INF_BRANCHMERGE -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'PM_INF_GRANT' as n ,count(1) as c from PM_INF_GRANT -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'PM_INF_MEMBER' as n ,count(1) as c from PM_INF_MEMBER -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'PM_MAG_BRANCHGRANT' as n ,count(1) as c from PM_MAG_BRANCHGRANT -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'PM_MAG_GENDICT' as n ,count(1) as c from PM_MAG_GENDICT -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'PM_MAG_GENDICT_NLS' as n ,count(1) as c from PM_MAG_GENDICT_NLS -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'PM_PARAMETER_SYSTEM' as n ,count(1) as c from PM_PARAMETER_SYSTEM -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
) b
select current_date;
--ecds跑的表
select *
from (
select 'ECDSNODT0101' as n ,count(1) as c from ECDSNODT0101 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0202' as n , count(1) as c from ECDSNODT0202 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0206' as n , count(1) as c from ECDSNODT0206 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0208' as n , count(1) as c from ECDSNODT0208 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0210' as n , count(1) as c from ECDSNODT0210 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0211' as n , count(1) as c from ECDSNODT0211 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0214' as n , count(1) as c from ECDSNODT0214 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0601' as n , count(1) as c from ECDSNODT0601 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0605' as n , count(1) as c from ECDSNODT0605 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0201' as n , count(1) as c from ECDSNODT0201 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0203' as n , count(1) as c from ECDSNODT0203 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0204' as n , count(1) as c from ECDSNODT0204 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0205' as n , count(1) as c from ECDSNODT0205 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0207' as n , count(1) as c from ECDSNODT0207 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0209' as n , count(1) as c from ECDSNODT0209 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0212' as n , count(1) as c from ECDSNODT0212 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0213' as n , count(1) as c from ECDSNODT0213 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0215' as n , count(1) as c from ECDSNODT0215 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0216' as n , count(1) as c from ECDSNODT0216 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0606' as n , count(1) as c from ECDSNODT0606 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
union all
select 'ECDSNODT0702' as n , count(1) as c from ECDSNODT0702 -- where to_date(insert_date, 'yyyy-mm-dd') = current_date
) s