Thanks in advance guys.
Been searching quite a bit for this and I'm either searching badly, or there isn't much out there to explain it.
In SQL server you can insert into a table using a select statement.
INSERT INTO table(col,col2,col3)
SELECT col,col2,col3 FROM other_table (in this case is a temp table) WHERE sql = 'cool'
Would be awesome, if i could Update via a select aswell. So I have a Temp Table that has the values and I want to update another table using those values. Something like this:
UPDATE Table SET col1,col2
SELECT col1,col2 FROM other_table WHERE sql = 'cool'
WHERE Table.id = other_table.id
Thanks in advance! James