final_check.sql
1.6 KB
SELECT '=== DWS ===' AS layer, '' AS tbl, '' AS cnt, '' AS min_date, '' AS max_date
UNION ALL SELECT 'dws_staff_daily_wide', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dws_staff_daily_wide
UNION ALL SELECT 'dws_merchant_daily_wide', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dws_merchant_daily_wide
UNION ALL SELECT 'dws_order_detail_wide', '', COUNT(*), MIN(install_date), MAX(install_date) FROM dws_order_detail_wide
UNION ALL SELECT 'dws_merchant_daily_target_wide', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dws_merchant_daily_target_wide
UNION ALL SELECT '=== DWM ===', '', '', '', ''
UNION ALL SELECT 'dwm_staff_touch_daily', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dwm_staff_touch_daily
UNION ALL SELECT 'dwm_staff_transaction_daily', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dwm_staff_transaction_daily
UNION ALL SELECT 'dwm_merchant_touch_daily', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dwm_merchant_touch_daily
UNION ALL SELECT 'dwm_merchant_transaction_daily', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dwm_merchant_transaction_daily
UNION ALL SELECT 'dwm_merchant_delivery_daily', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dwm_merchant_delivery_daily
UNION ALL SELECT 'dwm_battery_analysis_daily', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dwm_battery_analysis_daily
UNION ALL SELECT 'dwm_guarantee_daily', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dwm_guarantee_daily
UNION ALL SELECT 'dwm_store_ranking_daily', '', COUNT(*), MIN(report_date), MAX(report_date) FROM dwm_store_ranking_daily;