Смотреть видео: mysql - SQL Query to find max using joins - Stack Overflow