Home Statistics Script

Source: Internet
Author: User

--StatisticsSELECT *  fromT_SG_SJDJTJ;--Data SheetSELECT *  fromV_dataservice_ext TWHERET.data_type='0';--Check from descriptive information (statistics available, business table not)SELECT *  fromT_SG_SJDJTJ TWHEREt.msxx not inch(SELECTS.data_name fromV_dataservice_ext SWHERES.data_type='0');--Check from table nameSELECTT.*, T.rowid fromT_SG_SJDJTJ TWHERET.YWB not inch(SELECTS.table_name fromV_dataservice_ext SWHERES.data_type='0');--Comprehensive CheckSELECTM.table_name,n.ywb,m.unit_name,n.ywdw fromV_dataservice_ext M, (SELECTT.msxx,t.ywb,t.ywdw fromT_SG_SJDJTJ TWHERET.YWB not inch(SELECTS.table_name fromv_dataservice_ext S, T_SG_SJDJTJ TWHERES.data_type='0' andS.data_name=t.msxx andS.unit_name=T.YWDW--and S.TABLE_NAME<>T.YWB)) NWHEREM.data_name=N.msxx andM.data_type='0';

-- Update data this week SELECT *  from T_SG_SJDJTJ  SWHERE  s.msxxnot in(theSELECT from  t_sjtj T);

Home Statistics Script

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.