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 / krishna reddy l
select convert(varchar(5),ex)+'('+convert(varchar(5),count
(ex))+')' from example group by ex
Table name example and columna name ex
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a covered index?
What is a result set object returned by mssql_query()?
Explain the dirty pages?
What are policy management terms?
What security features are available for stored procedure?
Does full backup break log chain?
What is raid and what are different types of raid levels?
What is the return type of executeupdate ()?
if you encounter this kind of an error message, what you need to look into to solve this problem? : Sql server database administration
How to write a query with an inner join in ms sql server?
What is conditional split?
What is sql server management studio? : sql server management studio
What is a join in sql? What are the types of joins?
What is transaction server consistency?
What is data mart? : sql server analysis services, ssas