sql avg and group by
snippet in sql

sql avg and group by

user7670

SELECT
  AVG(depdelay),
  origin
FROM flight_delays
WHERE distance > 2000
GROUP BY origin;