大概语句是select * from compayee order by '工资' desc limit 6
select left(`时间`,10),`类型`,avg(`排名`) from tablename group by left(`时间`,10),`类型` order by left(`时间`,10),`类型`select DATE_FORMAT(`时间`,%Y-%m-%d) ,`类型`,avg(`排名`) from tablename group by DATE_FORMAT(`时间`,%Y-%m-%d) ,`类型` order by DATE_FORMAT(`时间`,%Y-%m-%d) ,`类型`
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)