让红色框中只显示一条时间最大的数据,SQL语句应该怎么写,请大神指导啊
select a.jclsh,a.jcdate,a.evl,a.cph from test a where not exists (select * from test where a.jclsh=jclsh and a.cph=cph and jcdate>a.jcdate)
select 字段 from 表 order by 字段。
需要注意一下字段类型
感谢