先按数学排,数学相同的按语文排,数学语文都相同的按姓名的拼音排,数学语文姓名都相同的按生日排
报告老师,我低头不是因为我在装低调,是你问的问题,我真的不会答,,,
LPARAMETERS tcField_Score,tcField_No LOCAL nScore,nNo,i SET ORDER TO (tcField_Score) DESCENDING nScore = EVALUATE(tcField_Score) STORE 1 TO nNo,i SCAN IF EVALUATE(tcField_Score) # nScore nSeqid = i ENDIF REPLACE (tcField_No) WITH nSeqid nScore = EVALUATE(tcField_Score) i = i +1 ENDSCAN3. 调用子程序对成绩排序
[此贴子已经被作者于2016-2-20 16:49编辑过]
select distinct 语文,000 as wwmc from S into cursor csrA readwrite order by 语文 DESC replace wwmc with recno() all select distinct 数学,000 as sxmc from S into cursor csrB readwrite order by 数学 DESC replace sxmc with recno() all select S.语文,csrA.wwmc as 语文名次,S.数学,csrB.sxmc as 数学名次 from S,csrA,csrB where S.语文=csrA.语文 .and. S.数学=csrB.数学