Top "Sql-update" questions

An SQL UPDATE statement is used to change existing rows in a table.

SQL update from one Table to another based on a ID match

I have a database with account numbers and card numbers. I match these to a file to update any card …

sql sql-server select join sql-update
MySQL error code: 1175 during UPDATE in MySQL Workbench

I'm trying to update the column visited to give it the value 1. I use MySQL workbench, and I'm writing the …

mysql sql-update mysql-workbench
How can I do an UPDATE statement with JOIN in SQL Server?

I need to update this table in SQL Server with data from its 'parent' table, see below: Table: sale id (…

sql sql-server tsql sql-server-2005 sql-update
MySQL - UPDATE query based on SELECT Query

I need to check (from the same table) if there is an association between two events based on date-time. One …

mysql select sql-update
Oracle SQL: Update a table with data from another table

Table 1: id name desc ----------------------- 1 a abc 2 b def 3 c adf Table 2: id name desc ----------------------- 1 x 123 2 y 345 In oracle …

sql oracle sql-update
Update a table using JOIN in SQL Server?

I want to update a column in a table making a join on other table e.g.: UPDATE table1 a …

sql-server tsql join sql-update
How do I (or can I) SELECT DISTINCT on multiple columns?

I need to retrieve all rows from a table where 2 columns combined are all different. So I want all the …

sql postgresql sql-update duplicates distinct
SQL update query using joins

I have to update a field with a value which is returned by a join of 3 tables. Example: select im.…

sql sql-server tsql sql-server-2005 sql-update
How to insert a value that contains an apostrophe (single quote)?

What is the correct SQL syntax to insert a value with an apostrophe in it? Insert into Person (First, Last) …

sql sql-update sql-insert
Update multiple columns in SQL

Is there a way to update multiple columns in SQL server the same way an insert statement is used? Something …

sql sql-server sql-update