I have a scenario where I need to get the row with maximum date. The SQL query for this would be
SELECT c.* FROM course c INNER JOIN (SELECT moduleId ,MAX(endD