I am trying to get the highest value. Actually, I did get the highest value, but when I added another field "Month Year" things got messed up( I got all the values and all the dates) so I tried to create a sub query and I don't think I'm doing it right. Can someone please help me with the syntax.
I want to get the highest value along with their dates
Thank you
SELECT Deployers.Deployers, MaxStatistics.Tot_calls_by_Month) As Total
FROM Deployers INNER JOIN Statistics ON Deployers.Deployers = Statistics.Deployers
Where Statistics.MonthYear in
( SelectDeployers.Deployers, Statistics.MonthYear
from Deployers INNER JOIN Statistics ON Deployers.Deployers = Statistics.Deployers);
I want to get the highest value along with their dates
Thank you
SELECT Deployers.Deployers, MaxStatistics.Tot_calls_by_Month) As Total
FROM Deployers INNER JOIN Statistics ON Deployers.Deployers = Statistics.Deployers
Where Statistics.MonthYear in
( SelectDeployers.Deployers, Statistics.MonthYear
from Deployers INNER JOIN Statistics ON Deployers.Deployers = Statistics.Deployers);