Try this:
SELECT t.ID, t.Mark FROM TblMaster t,
(SELECT MAX(Mark) MaxMarks, MasterTag FROM TestTable GROUP BY MasterTag) subTable
WHERE subTable.MasterTag = t.MasterTag
AND subTable.MaxMarks = t.Mark
ORDER BY ID
May not be the best way but should help. Include the columns you want in the first select line. :thumbsup: