SQL - Update column per Emp

So, I have a table, lets say with the following cols/data

EMPID     Value01    Value02   Value03
0001        Test01      Test02      0
0001        Test02      Test03      0
0001        Test04      Test05      0
0002        Test01      Test02      0
0002        Test02      Test03      0
0002        Test04      Test05      1
0003        Test01      Test02      0
0003        Test02      Test03      0
0003        Test04      Test05      1

So, what is important is columns EMPID and Value03.  The other columns are irrelevant.  Basically what I need to do is if the value in column Value03 = 1 then update that column = 1 for that EMPID.  

So EMPID -> 003 would have a value 1 in each Value03 column and same for EMPID ->002
LVL 2
CipherISAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dsackerContract ERP Admin/ConsultantCommented:
Try this:

UPDATE YourTable
SET VALUE03 = 1
WHERE  EMPID IN ( SELECT EMPID FROM YourTable
                         WHERE VALUE03 = 1)
AND VALUE03 = 0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CipherISAuthor Commented:
That did it.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.