Loading section...

MIN and MAX for extremes

Concepts: sqlMinMax

Basic MIN/MAX Usage Finding Extremes Within each category, the smallest price is selected. Electronics keeps 149 (ignoring 299 and 599), while Clothing keeps 29. This tells you the price range within each category. Electronics spans $450 while Clothing only spans $60. Advanced Applications MIN/MAX with Dates Now you can see each customer's entire order history at a glance: when they first ordered, their most recent order, and how many orders they have placed. MIN/MAX with Text Combining Aggregates This comprehensive summary shows price distribution across categories: how many products, the cheapest, average, and most expensive in each. Database Execution