select t9.name, t9.`成绩` as `最后一批成绩`,t8.`成绩` as `上一批成绩` from (select t3.*, t5.`成绩` from (select a3.name,max(`date`) as date2 from atest as a3 where `成绩` <0 anda3.date not in (SELECT max( date ) AS date FROM atestWHERE `成绩` <0 GROUP BY `name`) GROUP BY `name`) as t3 left joinatest as t5 on t5.date = t3.date2) as t8, (select t1.name, t1.date,t1.`成绩` from (SELECT `id`,`name` , `date` , `成绩` FROM atest WHERE `成绩` <0) as t1,(SELECT max( date ) AS date FROM atest WHERE `成绩` <0 GROUP BY `name`) as t2 where t1.date = t2.date) as t9 where t8.name = t9.name
最新问答: 请问高手塑料中含有这4种物质氟利昂、卤化烃、四氯化碳、三氯化烷吗 20th用英语怎么写 伸缩门是利用了平行四边形的什么性 He _____ a big nose.(没有)英语高手进 已知集合A={x|x2-(3a+3)x The ceiling he had just plastered fell in and knocked him of you,he and I [are/is/come/am] from china 和 就像罗马不是一天建成的一样 的意思一样的句子是什么? 帝字怎样加偏旁 3Q 一个敞口的杯子,里面有两根长短不一的蜡烛,底下放上碎鸡蛋壳,点燃蜡烛,慢慢倒醋,那个先灭为什么? 就1道数学题,帮个忙啦已知X^2+Y^2=7,XY=2,求5X^2 -3XY -4Y^2 -11XY -7X^2 +2Y 圣诞节前一周 用英文怎么说? 夏天自然界有什么特点 英语填空 He can ______(sweep/sweeps) the floor.有没有s?The bridge i 1、一项工程,甲单独做要8天,乙单独做要10天,现在甲先做2天.剩下的有甲乙合作完成,还需要几天? Don't forget _______ the door when you leave 榕树的意思 已知在三角形abc中,cosA/2=2根号5/5 AB向量·CA向量=-3,求S 甲乙两队人数是7比2,如1果从甲队派去30人去乙队,那么两队人数的比是1比1,两对原来各有多少人 在一个圆里 画一个最大的等边三角形.已知三角形边长 算圆的直径 能算么