Hey Guys,
Great looking forum, hope you can help me with this. I am trying to do a GROUP BY, but not having much luck.
SELECT `tblAttraction`.`AttractionName`, max(`tblAttraction`.`AttractionCapacity`), `tblAttraction`.`AttractionMinAge`, `tblThemePark`.`ParkName`
FROM `tblThemePark`
LEFT JOIN `tblAttraction` ON `tblThemePark`.`ParkID` = `tblAttraction`.`ParkID`
WHERE (`tblAttraction`.`AttractionName` <11)
GROUP BY `tblThemePark`.`ParkName`
Basically, I want the GROUP BY to say which is the most popular ride at each theme park. I thought this was the way, any idea where i'm going wrong?
Cheers
Great looking forum, hope you can help me with this. I am trying to do a GROUP BY, but not having much luck.
SELECT `tblAttraction`.`AttractionName`, max(`tblAttraction`.`AttractionCapacity`), `tblAttraction`.`AttractionMinAge`, `tblThemePark`.`ParkName`
FROM `tblThemePark`
LEFT JOIN `tblAttraction` ON `tblThemePark`.`ParkID` = `tblAttraction`.`ParkID`
WHERE (`tblAttraction`.`AttractionName` <11)
GROUP BY `tblThemePark`.`ParkName`
Basically, I want the GROUP BY to say which is the most popular ride at each theme park. I thought this was the way, any idea where i'm going wrong?
Cheers