About 168,000 results
Open links in new tab
  1. How can I do an UPDATE statement with JOIN in SQL Server?

    This was an example, but the point is as Eric said in How can I do an UPDATE statement with JOIN in SQL Server?. You need to add an UPDATE statement at first with the full address of …

  2. sql - update one table with data from another - Stack Overflow

    I'll like to add: for Postgresql, the syntax is slightly different update a set field1 = concat_ws(' ',field1, table2.middle_name, table2.first_name) from table2 where a.id = table2.fieldX; Just …

  3. sql - SAP HANA update with join - Stack Overflow

    Oct 20, 2022 · UPDATE TABX AS a SET b.att1 = 'XXX', b.att2 = 'ZZZ' LEFT JOIN TABZ AS b ON a.att3 = b.att3 WHERE a.att4 LIKE 'YYY' AND att5 = 'PPP' AND is_valid = 'TRUE' According …

  4. sql - Update statement using with clause - Stack Overflow

    ON (t.id = comp.id) WHEN MATCHED THEN UPDATE SET SomeColumn=ComputedValue; But I understand you have a more complex subquery you want to factor out. I think that you will be …

  5. Update query using Subquery in Sql Server - Stack Overflow

    Update query using Subquery in Sql Server Asked 12 years, 10 months ago Modified 5 years, 9 months ago Viewed 440k times

  6. How to update a table using stored procedures in SQL Server

    I have created a table in SQL Server called "Employee", and now I want to update the table using a stored procedure. The table has emp_name, emp_code and status columns.

  7. sql server - Update multiple columns in SQL - Stack Overflow

    Jan 31, 2012 · 26 The Update table1 set (a,b,c) = (select x,y,x) syntax is an example of the use of row-value constructors, Oracle supports this, MSSQL does not. (Connect item)

  8. sql - Update statement with inner join on Oracle - Stack Overflow

    Mar 15, 2010 · UPDATE (SELECT table1.value as OLD, table2.CODE as NEW FROM table1 INNER JOIN table2 ON table1.value = table2.DESC WHERE table1.UPDATETYPE='blah' ) t …

  9. How to do an update + join in PostgreSQL? - Stack Overflow

    @AdrianSmith, you can't use JOIN in UPDATE itself, but can use it in UPDATE's from_list clause (which is PostgreSQL's extension of SQL). Also, see notes about joining tables caveats on the …

  10. SQL Update from One Table to Another Based on a ID Match

    Oct 22, 2008 · Just a note on this solution, UPDATE...FROM is proprietary therefore, if you cannot use the MERGE statement because you are using SQL 2005 or earlier, this is an ANSI …