【答案解析】(1)select SEX,count(*) from S group by SEX
(2)select C#,CNAME from C where TEACHER='LIU'
(3)select SNAME from S where S# in(select S# from SC where C# not in (select C# from C where TEACHER='LIU'))
(4)select SNAME,C#,GRADE from S,SC where S.S#=SC.S# and SEX='男'