human
Schema:
Student (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)
Video_Games (GameID, GName, GType)
Plays_Games (StuID, GameID, Hours_Played)
SportsInfo (StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship)
Please answer with SQL.
assistant
Sure, I understand.
human
What information do you have on each advisor?
assistant
SELECT * FROM Student GROUP BY advisor;
human
What is the name for each advisor?
assistant
SELECT advisor FROM STUDENT GROUP BY advisor;
human
Which of those are for advisors who have more than 1 students?
assistant
SELECT advisor FROM STUDENT GROUP BY advisor HAVING COUNT( * ) >= 2 ;