我想在mysql中获得最高分数。我怎样才能在mysql中获得最高分数datewise
,当我跑这个查询: -
select tid from post order by marks desc limit 0,10;
我得到的最高分,但不datewise。
而当我运行此查询。
select tid from post order by date desc limit 0,10.
我获得价值日期明智的第一... 但我想要得到的最高分日期明智..
例如我的表是: -
s.no marks date
1 97 15-01-2013
2 104 14-01-2013
3 100 16-01-2013
4 105 16-01-2013
所以,我想要得到
s.no marks date
4 105 16-01-2013
3 100 16-01-2013
1 97 15-01-2013
2 104 14-01-2013
它只返回明智的日期 - 不工作 –
@ user1982661检查演示链接。 –
@ user1982661表中的日期列的数据类型是什么? –