17,377
社区成员
发帖
与我相关
我的任务
分享
select s.deriveno,
m.appno,
m.appdt,
m.ride_starttime,
p.pname,
sum(m.passenger_qty)
from app_send s, app_main m, app_nomapping n, app_passenger p
where s.deriveno = n.deriveno
and n.appno = m.appno
and n.optype = 'CMB'
and p.appno = m.appno
group by s.deriveno, m.appno, m.appdt, m.ride_starttime, p.pname