You figured showing some odd requirement. Please elaborate it. from figure we can judge your excat requirement. By the way you can get count, by using following query.
select cast(Age as varchar) + ':' + cast(COUNT(*) as varchar) from #temp group by Age
Jignesh TrivediPosted Jan 22, 2013, 4:34 AM
You figured showing some odd requirement. Please elaborate it. from figure we can judge your excat requirement.
By the way you can get count, by using following query.
select cast(Age as varchar) + ':' + cast(COUNT(*) as varchar) from #temp
group by Age
please replace #temp with original table name.