I have a temptable in my query which could have certain records like
Id Name
34 one
35 two
65 five
Now for each row in temp table, I want to insert a new row in history table
So the history table now would have 3 new records
Id created date updatedby
34 createdDate
35 createdDate
65 createdDate