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 convert(varchar,id) + '(' + CONVERT(varchar,count
(id)) + ')' as tot from tblname group by id
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the etl (extraction, transformation, and loading)?
What are different types of schemas?
How to test values returned by a subquery with the in operator?
What are the diifferences between the ms sql server vs mysql?
What’s the use of custom fields in report?
How to create percentile function?
What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?
What is database black box testing?
What are various ways to enhance the ssrs report?
What is the most common trace flags used with sql server?
Is mysql better than sql server?
What is field with example?
What is ddl command?
What is field in algebra?
How can we delete a table in sql server?