LXLogicExcel
๐Ÿ”ฅ
0
โญ
0
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;
flight_idairlinerouteticket_priceduration_minutes
1DeltaNYC-LAX320360
2UnitedNYC-ORD210150
3AmericanNYC-MIA260180
4JetBlueNYC-BOS12060
5SouthwestNYC-DEN280300

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.