There are 2 tables called
Students
Campus
I am trying to find campuses with more than 4 students, which include camName, camID, (number of students)
This is what I got so far
SELECT students.camID, campus.camName, SUM(students.stuID) as [count] FROM students JOIN campus ON campus.camID = students.camID WHERE [count] > 3 GROUP BY students.camID, campus.camName ORDER BY [count]
All this causes me, although this is an error where the "Invalid column name" is counted.
sql sql-server ssms-2014
Tristan Jul 04 '16 at 5:13 2016-07-04 05:13
source share