Hi Folks,I need to select course information from 2 different tables schoolid is the foreign key. so far I have this: SELECT schools.schoolid, schools.schoolname, courses.courseschool, courses.coursetype FROM courses, schools WHERE courses.courseschool = schools.schoolid and courses.coursetype = 'pt' GROUP BY schools.schoolid
But i get this error:Column 'schools.SchoolName' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.What I would like to do is display the schoolname, and then all the courses in that school. Can anyone help?Thankyou