I use the following code, but I am trying to understand Aliases, I get an error with this code "SQL command not properly ended", line 2
SELECT student.lastname, student.firstname
FROM student AS Student_Name
INNER JOIN memberof ON (Student_Name.SID = memberof.studentid)
INNER JOIN studentgroup ON (memberof.groupid = studentgroup.gid)
GROUP BY Student_Name.lastname , Student_Name.firstname
HAVING COUNT(memberof.groupid) >= 2