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
Show the names and levels of all managers.
assistant
SELECT Name , Level FROM manager;
human
Only keep the name whose level is at least 7
assistant
SELECT Name FROM manager WHERE LEVEL >= 7;
human
Order all the names in ascending order of level.
assistant
SELECT Name FROM manager ORDER BY LEVEL ASC ;