如下图,两个数据集,销售额进行了京挑客月的过滤 现在京挑客1.1-1.2没有数据,所以就没有1.1和1.2的日期,销售额这两天是有数据的,但是没有展现出来,只展现到了21年的12月份,怎么才能展现出来呢? SELECT jd_tiaoke.NAME_BRAND, jd_tiaoke.DATA_AD, date_week.md_date 结算时间, date_format(date_week.md_date,"%Y-%m") as 年月, weekofyear(date_week.md_date) as 周, concat(yearweek(date_week.md_date,3),'周' ) as A周, jd_tiaoke.NUM_PAYMENT_ORDER, jd_tiaoke.sales_rmb, jd_tiaoke.PRE_COST_RMB, jd_tiaoke.mode_ads, jd_tiaoke.name_plan FROM jd_tiaoke right join date_week on jd_tiaoke.DATA_AD=date_week.md_date where date_week.md_date >= '2022-1-1' and date_week.md_date <= '2022-1-2' and NAME_BRAND LIKE 'CROCSkids' ORDER BY date_week.md_date |