SELECT IDENTITY(int, 1,1) AS row_Num , au_idinto #authorsFROM pubs..authorsGO select * from pubs..authors a1 , #authors a2where a1.au_id = a2.au_idand a2.row_Num = 8Godrop table #pubsGO