I want get distinct rows on the basis of two columns

This link may help you,

AND,