I'd like to join 2 tables together. TableB has 15 distinct values that I want to go into the TableA (the one I'm inserting into). However, I also want to insert individual values for TableA. For example, I want to insert the 15 individual values from TableB into TableA, but I also want to be able to insert another field ('region') in TableA
--so far I have this
insert into TableA ((id)
select distinct(id) from TableB
group by id), region values('NYC')
I'm not sure how to insert the region in there...the above fails. I need to hardcore the regions in there because they are not in the other table.