why? why this is not working?
I can’t update 2 tables in one statement?
update pd, p
set pd.show = 0 , pd.seashow = 0, p.StockLimited = 0
FROM ProductDetail pd
join Products p on p.itemid = pd.ItemID
where pd.show = 1
and pd.site in (5,2,9)
hi.
this is a very hard sql.
if someone can do it without a cursor and in 1 sql, it will be very good.
this is my table:
item | store | Price
aaa |store1 | 20
aaa |store8 | 19
aaa |store6 | 50
aaa |store55| 64
aaa |store3 | 15
bbb |store1 | 12
bbb |store8 | 20
bbb |store6 | 15...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.