LucieLastic
Programmer
hi
I'm trying to get the tail end of ICValue and then group by the tail end and PrefDisp fields. Is it possible? I have this at the moment which I was hoping would work. Ultimately, I want to extend it to get me the count of each 'tailend' for each PrefDisp.
Many thanks for help
Lou
I'm trying to get the tail end of ICValue and then group by the tail end and PrefDisp fields. Is it possible? I have this at the moment which I was hoping would work. Ultimately, I want to extend it to get me the count of each 'tailend' for each PrefDisp.
Code:
select PrefDisp, ICValue, substring(ICValue, charindex('=', ICValue), 10) as tail
from RICData
where LastUpdated >= getdate()-14
group by PrefDisp, tail --substring(RICValue, charindex('=', RICValue), 10)
Lou