human
Schema:
event (Event_ID, Date, Venue, Name, Event_Attendance)
journalist (journalist_ID, Name, Nationality, Age, Years_working)
news_report (journalist_ID, Event_ID, Work_Type)
Please answer with SQL.
assistant
Sure, I understand.
human
What is the average number of years a journalist works?
assistant
SELECT AVG ( Years_working ) FROM journalist;
human
What is the greatest?
assistant
SELECT Years_working FROM journalist ORDER BY Years_working DESC LIMIT 1;
human
Who is the journalist that has worked this long?
assistant
SELECT name FROM journalist ORDER BY Years_working DESC LIMIT 1 ;