need help in sql query

05/17/2016 01:14 warzned#1
hi everybody,

i need a sql query that works in mssqlServer

the query is to get a difinite number like

update dbo.1 set id = 0 where dbo.1.number = dbo.2.number

got me?

i need to set value in table 1 in column "id" = 0
where the value in column "number" in table 1 == the value in column "number" in table 2
and i want to inform the query a difinite value of dbo.2.number
05/22/2016 22:40 KingDingD0ng#2
Why are you trying to change the id? If this is your primary key and it's auto incremented, you shouldn't change it at all.

Greetz