求指点!这种情况下的sql语句怎么写?谢谢
如图
我想提取除了xz为公共选修课和专业选修课的成绩为不及格和<60的所有记录,sql 该怎么写呢,请大家指教,谢谢
[解决办法]
select * from tb where not existsselect * from tb where xz in ('公共选修课','专业选修课') and (cj > 60 or cj in('优秀','良好'))
[解决办法]
select * from tb where xz not in ('公共选修课','专业选修课') or (xz in ('公共选修课','专业选修课') and (cj<>'不及格' or (cj>=60 and isnumeric(cj)=1) ) )