第一个查询的结果集 select * from( select c.msName,a.msId,c.msPrice, c.msPrice*COUNT(a.msId) as totalMoney,sum(a.msAmount) as totalCount from BillConsume a right join ( msTime order by msTime asc) b on a.msTime between b.startTime and b.endTime and a.msId!= le
第一条sql: select unit,count(*)as number from archives_management group by unit 第二条sql: select fine_units,count(*) as fine_number from fine group by fine_units 注:两条sql 分别查询结果如下图 要求生成如下格式: unit number fine_num