Question : Need help with sql server query

I have a three part question.

First off, I have two tables : Student   and    GPA

Under the Student table I have the following fields:
Student_ID
Student_Name
Address_1
Address_2
City
State
Zip
Country

Under the GPA table I have the following fields:
Student_ID
Course_ID
Course_Name
Semester
Year
Credit_Hr
GPA


I need a SQL that will give me the average GPA for each student who lives in the following locations;


Atlanta, GA             United States
New Orleans, LA   United States
Seoul                      Korea


I also need a query statement to find the student (Student ID and Student Name) who has the highest GPA in MGT 3400 (course name) in Spring 2005




Last, I need a statement that will list all the students (student id and student name) who enrolled in ART 4010 in Spring 2006

Answer : Need help with sql server query

why does this seem like a homework assignment?
1:
2:
3:
4:
5:
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'
Random Solutions  
 
programming4us programming4us