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;

Table crops

idcountry_namecropproduction_tonscontinent
1BrazilSoybeans130South America
2United StatesCorn360North America
3IndiaRice120Asia
4ChinaWheat135Asia
5FranceWheat40Europe

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

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.