Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Simple update

Author  Topic 

mike13
Posting Yak Master

219 Posts

Posted - 2011-09-16 : 12:19:19
HI all,

I want to update all product prices and with less 2 euro (-2)

how to i do that?

SELECT Price
FROM T_Product

thanks a lot

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-09-16 : 12:21:59
[code]UPDATE T_Product
SET Price=Price-2
[/code]

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

mike13
Posting Yak Master

219 Posts

Posted - 2011-09-16 : 12:40:53
uppss, i was complicating, something simple!
Thanks a lot
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-09-16 : 12:47:26
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -