select * from Course Where csName='自习' and ClassName in( select ClassName from Course where csTeacher='张三')
楼主你的SQL语言是什么程度的?看看楼上的吧,人家写的才是对的你那个格式都不对