AVG - Average Aggregate1 / 10
AVG is an aggregate function that returns the average of a specified column. To get the average ticket price, try:

SELECT AVG(ticket_price) FROM flights;

Table flights

flight_idairlinerouteticket_priceduration_minutes
1DeltaNYC-LAX320360
2UnitedNYC-ORD210150
3AmericanNYC-MIA260180
4JetBlueNYC-BOS12060
5SouthwestNYC-DEN280300

No key for < or > on your keyboard? Use these:

Ctrl+Enter to submit

πŸ”₯ 0 streak
⭐ 0 XP this lesson
All Lessons

AVG - Average Aggregate - Free SQL Practice Online

Practise AVG - Average Aggregate with 10 free, interactive SQL exercises. You type real queries into your browser and get instant feedback on every answer - no database setup, no install, and no signup. It is a fast, hands-on way to learn SQL online and build query skills you can use at work.