This is my query:
SELECT Cottage15.CNUM,Cottage15.Rent,Assignment15.Hours
FROM Cottage15
INNER JOIN Assignment15
ON Cottage15.CNUM=Assignment15.CNUM
ORDER BY Assignment15.AID;
It works, but I can't figure out how to apply the Max function to hours? I was hoping that MAX(Assignment15.Hours) would work!?
This query shows all of the rows, but I only want it to show me certain rows that have the highest number based on the hour field.
GROUP BYalong with it.