About
Pricing
Community
Teams
Start Free Trial
Log in
dave_sky
asked on
12/24/2012
SQL Server query to change column value from 0 to 1
Software: SQL Server 2005
I am looking for a query to change a specific column value from 0 to 1.
Example:
I have a table column that is always numbered 0, 1, 2, 3, etc. I want to change it so it numbers 1, 2, 3, 4 etc
Thanks!
Editors IDEs
Microsoft SQL Server 2005
4
2
Last Comment
dave_sky
8/22/2022 - Mon
SOLUTION
Jared_S
12/24/2012
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
dave_sky
12/24/2012
ASKER
Is there a syntax that will change the row value to 1........only if the value is 0?
I have existing table entries with the value of 1 which I don't want the value changed.
ASKER CERTIFIED SOLUTION
Guy Hengel [angelIII / a3]
12/25/2012
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
dave_sky
12/25/2012
ASKER
Thanks!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
I have existing table entries with the value of 1 which I don't want the value changed.