human
Schema:
railway (Railway_ID, Railway, Builder, Built, Wheels, Location, ObjectNumber)
train (Train_ID, Train_Num, Name, From, Arrival, Railway_ID)
manager (Manager_ID, Name, Country, Working_year_starts, Age, Level)
railway_manage (Railway_ID, Manager_ID, From_Year)
Please answer with SQL.
assistant
Sure, I understand.
human
List all the ages of the managers
assistant
SELECT Age FROM manager;
human
What is the maximum value of it?
assistant
SELECT MAX( Age ) FROM manager;
human
How about the average?
assistant
SELECT AVG ( Age ) FROM manager ;