T SQL - How to get row numbers from select query