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 |
|
dnhart13
Starting Member
1 Post |
Posted - 2011-02-24 : 03:04:44
|
| Greetings...is there any way to view some data into new column in 'view' tablei have this kind of tableName value1 value2 value3 groupmmm 1 4 null Annn 2 5 null Booo 3 6 null Cmmm null null 7 Dnnn null null 8 Dooo null null 9 Di want to view that table like this oneName value1 value2 value3 groupmmm 1 4 7 Annn 2 5 8 Booo 3 6 9 Cso i match the group D value to Name column...Thank You B4 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2011-02-24 : 03:09:25
|
[code]select Name, sum(value1) as value1, sum(value2) as value2, sum(value3) as value3, min(group) as groupfrom yourtablegroup by Name[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
|
|
|