ROW_NUMBER() is your friend here. Something like:
select rw = ROW_NUMBER() OVER (PARTITION BY KEY_NO ORDER BY DATA)
If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.