表中字段:phonenumber,score,examtime
要取出时间段中phonenumber的score最大并且examtime最小的记录,用max和min取的值都不是正确的记录值,用排序子查询的方法可以取到
先按score降序、examtime升序对phonenumber分组排序,再只取rn=1的记录,就可得到正确的结果
表中字段:phonenumber,score,examtime
要取出时间段中phonenumber的score最大并且examtime最小的记录,用max和min取的值都不是正确的记录值,用排序子查询的方法可以取到
先按score降序、examtime升序对phonenumber分组排序,再只取rn=1的记录,就可得到正确的结果
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M