Skip to content

All-Access: every lesson, no ads. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month, billed yearly. Free to start. Cancel any time

See plans
All-Access, no ads: every lesson, course and template. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month. + GST at checkoutSee the plans →

<i>Aggregate functions</i> in SQL look at many rows and return a single result. MIN and MAX are examples of aggregate functions. To get the minimum height in the landmarks table, try:

Table landmarks

landmark_idlandmark_nameheight_metersborough
1Statue of Liberty93Manhattan
2Empire State Building381Manhattan
3Brooklyn Bridge84Brooklyn
4Chrysler Building319Manhattan
5One World Trade Center541Manhattan

MIN & MAX - Aggregate Functions - SQL Practice Online

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