title: If Record Exists, Update Else Insert
body: <p>I'm trying to move some data between two SQL Server 2008 tables. If the record exists in Table2 with the email from Table1 then update that record with the data from Table1, else insert a new record.</p>
  
  <p>In Table1 I have a number of columns; first name, surname, email and so on.</p>
  
  <p>I'm not quite sure how to structure the query to update Table2 if the email from Table1 exists or insert a new row if email from Table1 does not exist in Table2.</p>
  
  <p>I tried doing a few searches on Google but most solutions seem to work by creating some stored procedure. So I wondered if anyone might know how to build a suitable query that might do the trick?</p>