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)
 Updating records

Author  Topic 

ballabhoks
Starting Member

18 Posts

Posted - 2005-04-12 : 23:39:29
Dear all,
Data in my table looks as follows

name address phone phone1 recid

abcd 232a Okhla 1234 1
abcd 232a Okhla 12345 2
abc 23a Okhla 1234 3
abc 23a Okhla 1234 4
abc 23a Okhla 1234 5

I want to update phone1 with the value of phone where value of name and address is same.

Thanks,
Ballabh

rrb
SQLTeam Poet Laureate

1479 Posts

Posted - 2005-04-12 : 23:40:56
[code]update table
set phone1 = phone
where name = address[/code]
but I don't think that's what you really want - maybe you could provide an example output also...

--
I hope that when I die someone will say of me "That guy sure owed me a lot of money"
Go to Top of Page
   

- Advertisement -