To get tempary row number

SELECT ROW_NUMBER() OVER(ORDER BY ID DESC) AS Row,
colnam1, colnam2
 FROM table1

Comments

Popular posts from this blog