Hi I am trying to insert data from table A to table B. Table A doesn't have id. How to insert MAx(id) +1 for each insert row?
Insert into table B
(max(id) + 1
,EIN,YEAR)
select distinct EIN, YEAR from Table A
simam
Hi I am trying to insert data from table A to table B. Table A doesn't have id. How to insert MAx(id) +1 for each insert row?
Insert into table B
(max(id) + 1
,EIN,YEAR)
select distinct EIN, YEAR from Table A
simam