if we have a column (Key) in a table.
and values of that column is
Key
1
1
1
2
2
3
3
4
4
5
5
5
and we want to show the data after query..like..
1(3)
2(3)
3(2)
4(2)
5(3)
how many times a single term comes..
Answer Posted / sagar more
select replace(wm_concat(key||''||'('||count(*)||')' ),',','') key from drop1
group by key
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is check constraint in sql server?
What are the default system databases in sql server 2000?
Explain logical operators in sql server?
How do you delete duplicate records in sql server?
What is spatial and temporal data?
What are rows and columns?
How can we improve performance by using SQL Server profiler?
What were the latest updates to SQL Azure service?
How do I create a trace in sql server?
Benefits of Stored Procedures?
Can I delete event logs?
What are the key configuration files for sql server reporting services ?
What is a covering index?
How you trouble shoot when any job fails
What is difference between order by and group by?