select identity(int,1,1)as ID,* into #a from customerselect * from #a where ID > (select max(ID) from #a)-2