Select Student_name, sum(g.GPA)/count(*) from Student s left join [GPA] g on s.Student_ID=g.Student_ID where City+(case when len(state)=0 then '' else ', '+State end)+' '+Country in ('Atlanta, GA United States','New Orleans, LA United States', 'Seoul Korea')
Select Top 1 Student_ID,Student_Name from Student s left join [GPA] g on s.Student_ID=g.Student_ID where g.Course_name='MGT 3400' and g.year='2005' and g.Semester='Spring' order by GPA desc
Select Student_ID,Student_Name from Student s left join [GPA] g on s.Student_ID=g.Student_ID where g.Course_name='ART 4010' and g.year='2006' and g.Semester='Spring'
|