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)
 Help me with Update Statement

Author  Topic 

vinurvk
Starting Member

8 Posts

Posted - 2010-12-22 : 06:10:48
Table1 contains column a, b, c & d

column a contains the name
column b & c contains numbers.

i want to update column d with values based on column b & c
Eg = Column D = (Column C / column B)
for every row of a..

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-12-22 : 06:20:43
select a,b,c,1.0*c/b as d from your_table

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

vinurvk
Starting Member

8 Posts

Posted - 2011-02-26 : 14:19:13
thats perfect... it works..
Go to Top of Page
   

- Advertisement -