|
-
Simple update
I have a table T1 with following columns and data
ID----Name-----Salary-----Dept
1.....Joe
2.....Kelly
3.....Sam........300.......10
4.....Joe........500.......20
5.....Kelly......700.......20
Now I want to run update so Joe's salary and dept should be equal to other Joe which is 500 and 20, and Kelly's salary should be equal to other kelly's salary and dept.
I Have over 2000 rows that needs to be update, so I have to to run single statement.
Thanks in Advance
Last edited by irehman; 12-02-2003 at 10:23 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|