human
Schema:
player (Player_ID, Sponsor_name, Player_name, Gender, Residence, Occupation, Votes, Rank)
club (Club_ID, Club_name, Region, Start_year)
coach (Coach_ID, Coach_name, Gender, Club_ID, Rank)
player_coach (Player_ID, Coach_ID, Starting_year)
match_result (Rank, Club_ID, Gold, Big_Silver, Small_Silver, Bronze, Points)
Please answer with SQL.
assistant
Sure, I understand.
human
How many residences are there?
assistant
SELECT COUNT( distinct Residence ) FROM player;
human
What are these residences?
assistant
SELECT distinct Residence FROM player;
human
Which residences have more than 1 player?
assistant
SELECT Residence FROM player GROUP by Residence HAVING COUNT( * ) > = 1 ;