| Author |
Topic |
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2012-03-21 : 23:07:39
|
| Hi, How can I do this?I want the total people stay in house 100A to appear only once.House Name Total100A Jacob 2100A Jane 2Appear only onceHouse Name Total100A Jacob 2100A Jane |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2012-03-21 : 23:17:56
|
looks like a presentation issue. Do this in your front end appplication KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2012-03-21 : 23:23:51
|
| Can't understand |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2012-03-21 : 23:34:56
|
i mean do this where you are displaying the data. What you want is just not to show the data when the House is repeating. This can be easily done at your client side where the data is displayed. KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2012-03-21 : 23:39:00
|
| i would like to display it only once in my report.can be done in the query itself? |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2012-03-21 : 23:41:34
|
yes. it can be done in query. But can't your report handle this at all ? KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2012-03-21 : 23:47:57
|
| Is better if can be handle in query itself :D |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2012-03-21 : 23:59:46
|
most people here think otherwise well, if you really want to do it in SQL sideselect House, Name, Total = case when rn = 1 then Total endfrom( select House, Name, Total, rn = row_number() over (partition by House order by Name) from yourtable) dorder by House, Name KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2012-03-22 : 00:43:08
|
| Any idea how can I apply in reports? Im using SSRS(Microsoft Visual Studio 2008) |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
peace
Constraint Violating Yak Guru
420 Posts |
Posted - 2012-03-22 : 00:54:41
|
| Owh okay.. |
 |
|
|
|