select b1701,b1703,b1722 from b17 
where (b1701,b1703) in 
      (
         select b1701,max(b1703) from  b17 
         group by b1701
      );