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 / rajkumar v
select SNo, '(' + convert(varchar,count(SNo)) + ')' from
test group by SNo having COUNT(*)>=1
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How does a profiler work?
What is nonclustered index with included columns ?
What are the diifferences between the ms sql server vs mysql?
What are the new features of sql server 2008 r2 reporting service?
What is 3nf normalization?
How to defragment table indexes?
how would you troubleshoot blocking? : Sql server database administration
What are the commands used in DCL?
Tell me what do you understand by a view? What does the with check option clause for a view do?
How to create a new login name in ms sql server?
What will be the maximum number of indexes per table?
How do I find the sql server instance name?
What is RMS migrations?
How many types of database relationship in sql server?
what are different types of backups available in sql server? : Sql server database administration