回复 楼主 分号
最好辅以图示。是按1、2、2、3、3、4……,还是按1、2、2、4、4、6……,不知理解对否?
参考上线名次?
[此贴子已经被作者于2023-4-24 14:44编辑过]
程序代码:Select bj, 类型, Cast(0 as I) as 排名 from 积分合并 order by 类型, 语文名合并, 语文上线名 into cursor 排名 Readwrite
Update 排名 set 排名 = Recno()
Select 类型, Min(排名) as 排名 from 排名 group by 类型 into cursor 类型
Update t set t.语文合名次 = 1 + s1.排名 - s2.排名 ;
from 积分合并 t ;
inner join 排名 s1 on t.bj == s1.bj ;
inner join 类型 s2 on t.类型 == s2.类型
Use in Select('排名')
Use in Select('类型')
*!* Select * from 积分合并 order by 类型, 语文合名次 && 排序列出, 查验结果
