LXLogicExcel
๐Ÿ”ฅ
0
โญ
0
ORDER BY - Sorting Results1 / 10
Use ORDER BY to sort records by crop production amount from lowest to highest. Try:

SELECT * FROM crops ORDER BY production_tons;
idcountry_namecropproduction_tonscontinent
1BrazilSoybeans130South America
2United StatesCorn360North America
3IndiaRice120Asia
4ChinaWheat135Asia
5FranceWheat40Europe

Ctrl+Enter to submit

๐Ÿ”ฅ 0 streak
โญ 0 XP this lesson
All Lessons

ORDER BY - Sorting Results - Free SQL Practice Online

Practise ORDER BY - Sorting Results 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.