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 2000 Forums
 SQL Server Development (2000)
 Need help to changing table column all < 0 to 0

Author  Topic 

jakubsnm
Starting Member

3 Posts

Posted - 2009-10-07 : 20:13:02
I need a query to change all my customers account balances under $0 to $0

TABLE: users
COLUMN to go over: Balance

without affecting balances over $0

Appreciate any help guys n gals

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-10-08 : 00:44:37
Sounds like a homework question, but I'll bite:

UPDATE users
SET Balance = 0
WHERE Balance < 0

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -