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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Need help count the values with distinct
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

2 Posts

Posted - 10/03/2012 :  10:13:33  Show Profile  Reply with Quote
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

Edited by - Rameshbtech2010 on 10/03/2012 10:17:29

Starting Member

2 Posts

Posted - 10/03/2012 :  10:16:05  Show Profile  Reply with Quote
my mail id:
Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 10/03/2012 :  10:17:35  Show Profile  Reply with Quote
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

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000