>>If you want the fastest result, then try packed value solution from that blog. > >Thanks
select PK, cast(substring(MaxValue,11,10) asint) as ChildPK, MaxChildField
from (select PK, Max(ChildField) as MaxChildField,
max(cast(ChildField aschar(10)) + cast(ChildPKField aschar(10))) as MaxValue from myTables GROUPBY PK) X