I\'m hoping there\'s a simple way to do this without using a sub-query:
Scenario: You have \"TableA\" with columns \"Key\", \"SubKey\", and \"Value\". I need to ge
SELECT MAX(Value) FROM TableA t1 GROUP BY Key, SubKey HAVING SubKey = (SELECT MAX(SubKey) FROM TableA t2 WHERE t1.Key = t2.Key) AND Key = 1