实现全连接的方法:把左连接和右连接的结果纵向相加并去重。实现左/右反连接的方法:对右/左表字段取值为空进行条件筛选。
235239
2020-11-08
1、根据司机完单表求2017年7月1日-2017年7月31日,有过10天以上的完单并且总完单量在20单以上的司机id,司机姓名,司机完单天数、司机完单数select driver_daily.driver_id,driver_name,count(distinct concat(d_year,d_month,d_day)) as 完单天数,count(distinct order_id) as 完
235239
2020-11-07
1、根据司机完单表求2017年7月1日-2017年7月31日,有过10天以上的完单并且总完单量在20单以上的司机id,司机姓名,司机完单天数、司机完单数select driver_daily.driver_id,driver_name,count(distinct concat(d_year,d_month,d_day)) as 完单天数,count(distinct order_id) as 完
235239
2020-11-07