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 is the max training hours of all players, please?
assistant
SELECT MAX( HS ) FROM Player;
human
What about the min?
assistant
SELECT MIN( HS ) FROM Player;
human
How about the average?
assistant
SELECT AVG ( HS ) FROM Player;
human
Who is the player with the lowest training hours?
assistant
SELECT pName FROM player ORDER by HS LIMIT 1;
human
What about the highest training hours, please?
assistant
SELECT pName FROM player ORDER by HS desc LIMIT 1 ;