Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15264

how to count same column number with same id

$
0
0

Hello, everybody actually i want to count the same value of multiple row with same id.

Idclassname Value Para_id

1 carVersion Audi A4 1.8 TFSI Multitronic 1

3 mileage  Mileage1

8 communication  USB Compatibility 3

16 door Conventional door4

22 carVersion Audi A4 1.8 TFSI Multitronic 4

24 carVersion Audi A4 1.8 TFSI Multitronic 4

14 economy 2.13 lakhs 4

19 lock Child Safety Lock4

see the above table in the last column para_id repeated for example see the para_id 4 and classname for this is door, carversion, carversion.

From that i want to fire the query whose give the para_id=4 and and from the classname query count the which class is more repeated.

In about query output will be Para_id=4 and classname=carversion because carversion is repeated twise. Such query i want fire. If anybody know how to do this plz replay with query.


Viewing all articles
Browse latest Browse all 15264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>