select 准考证号,姓名,身份证号,政治等第+语文等第+数学等第+物理等第+化学等第+外语等第+历史等第+地理等第+生物等第+信息等第 等第 from 例表 into cursor t1
select 准考证号,姓名,身份证号 from t1 where occurs('A',等第)=10
select 准考证号,姓名,身份证号 from t1 where occurs('A',等第)>=7
select 准考证号,姓名,身份证号 from t1 where occurs('A',等第)=9 and occurs('B',等第)=1
select 准考证号,姓名,身份证号 from t1 where occurs('A',等第)=8 and occurs('B',等第)=2
select 准考证号,姓名,身份证号 from t1 where occurs('A',等第)=1 and occurs('B',等第)=1 and occurs('C',等第)=8
select 准考证号,姓名,身份证号 from t1 where occurs('A',等第)=3 and occurs('B',等第)=3 and occurs('C',等第)=1
select 准考证号,姓名,身份证号 from t1 where occurs('A',等第)=2 and occurs('B',等第)=3 and occurs('C',等第)=1 and occurs('D',等第)=2
感言:学以致用。
博客:http://www.bc-cn.net/blog/user14/65009/index.shtml
email:Tiger5392@tom.com