Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Need help count the values with distinct

Author  Topic 

Rameshbtech2010
Starting Member

2 Posts

Posted - 2012-10-03 : 10:13:33
Hi all,

please send the sql coding for these output:

in table contains the values: 10,10,10,20,20,30

the output is: 10 3 times, 20 2 times, 30 1 times

send the query as soon as possible

Rameshbtech2010
Starting Member

2 Posts

Posted - 2012-10-03 : 10:16:05
my mail id: rameshbtech2010@gmail.com
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-10-03 : 10:17:35
This is not an answering service.
we need to see some attempt from you before we help you out!
look for group by and count() functions in books online

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -