Sql Server Function Find Maxnums