select count(*) from 表名 where 成绩 = 90 and 姓名=‘谭资产’;建议别用名字,用主键也就是学号,这样不会重复。人名一样怎么办
select count(科目) from 表名 where name=姓名 and grade=90你可以试一下!!
select 学生 count(科目)【科目数】 from table where 成绩 = 90 and 学生 = ***;
不知道你的表设计,怎么教你呢