SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

Rameshbtech2010
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

Rameshbtech2010
Starting Member

2 Posts

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

visakh16
Very Important crosS Applying yaK Herder

India
52325 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
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.06 seconds. Powered By: Snitz Forums 2000