写出SQL语句,已知有基本表:学生:S(SNO,SNAME,SEX,DEPT,BIRTH)课程:C

2024-11-06 08:07:46
推荐回答(1个)
回答(1):

1
select sno from sc where cno='1'

2
select sname from s where sno in (
select sno from sc where cno='2'
)

3
select sname from s where dept='计算机系' and datediff(year,birth,getdate())<19