Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the difference between SQL notification and SQL invalidation?

1176


What is meant by Active-Passive and Active-Active clustering setup?

1162


What is log in sql server?

1141


How to make conditional sum in ssrs?

177


What is repeatable read?

1006


When cursors are useful?

1091


Explain the working of sql privileges?

1084


How many databases instances are there in sql server 2000?

1091


Can you explain what is indexed view? How to create it?

889


How to bind a view to the schema of the underlying tables?

989


What are the restraints imposed on the table design by a merge replication?

1031


Do you know what are the ways available in sql server to execute sql statements?

1018


What is report snapshot in ssrs?

266


Explain what are the events recorded in a transaction log?

1000


Define normalisation?

1102