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.
| Author |
Topic |
|
armesjr
Starting Member
9 Posts |
Posted - 2009-11-23 : 11:10:26
|
| l |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-11-23 : 11:18:09
|
| [code]UPDATE tSET t.I_FROM_DT = t1.FirstDate,t.I_thru_Dt = t1.LastDateFROM db tJOIN (SELECT I_CLM_ID,MIN() AS FirstDate, MAX(t.I_thru_Dt) AS LastDate FROM db GROUP BY I_CLM_ID) t1ON t1.I_CLM_ID=t.I_CLM_ID[/code] |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-11-23 : 12:35:33
|
quote: Originally posted by armesjr l
why did you do that? dont do this as somebody might benefit from this thread in future |
 |
|
|
armesjr
Starting Member
9 Posts |
Posted - 2009-11-23 : 12:47:12
|
| Didnt mean too. i was trying to edit it, and by accident deleted it. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2009-11-23 : 12:48:25
|
quote: Originally posted by armesjr Didnt mean too. i was trying to edit it, and by accident deleted it.
put it back please |
 |
|
|
|
|
|