human
Schema:
College (cName, state, enr)
Player (pID, pName, yCard, HS)
Tryout (pID, cName, pPos, decision)
Please answer with SQL.
assistant
Sure, I understand.
human
What schools have players that tried out for goalies?
assistant
SELECT cName FROM tryout WHERE pPos = 'goalie';
human
What schools have players that tried out for the mid position?
assistant
SELECT cName FROM tryout WHERE pPos = 'mid';
human
In which states are the schools that fit into the latter category but not the former?
assistant
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = "mid" EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = "goalie" ;