Questions tagged [max]

Finding the maximum value in a group of items

Filter by
Sorted by
Tagged with
4
votes
2answers
7k views

Find Max Value for each month for the last 3 months, properly

I have a query going that gets data for an ID for the last 3 months. I need to tweak it so I get the highest value for each of the three months. I've tried a couple of things with the aggregate ...
2
votes
1answer
453 views

Highest value of a row in MySQL

I searched and found many results using "Grep highest value of a row in MySQL" but I don't understand the results. I have a row which primary key value is 4 and there are another 8 values. Those are ...
0
votes
1answer
1k views

MySQL - maximum of sum over different months [duplicate]

I have a table called commodities where I have nature_of_goodscolumn in it. nature_of_goods contains all the different types of goods like machinery, household etc. I have another column called as ...