我正在编写一份水晶报告,并且正在生成基于绩效的报告。这是我的查询
select mguser.userID, mguser.userName as Loger,date_format(trschedule.insDate,'%Y-%m-%d') as _Date,
count(distinct trschedule.scheduleID) as Schedule_Count, count(*) segment_count
FROM
mguser
我想要这两列的总和--- count(distinct trschedule.scheduleID) as Schedule_Count, count(*) segment_count
我怎么能在mysql中做到这一点???