Re: multi count
From: Aaron [SQL Server MVP] (ten.xoc_at_dnartreb.noraa)
Date: 07/23/04
- Next message: norris tc: "Re: databse owner in sp_attach_db"
- Previous message: Aaron [SQL Server MVP]: "Re: Select TOP dynamic..."
- In reply to: Jeff: "multi count"
- Next in thread: Jeff: "Re: multi count"
- Reply: Jeff: "Re: multi count"
- Reply: Rohtash Kapoor: "Re: multi count"
- Reply: Jeff: "Re: multi count"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Jul 2004 10:11:14 -0400
Can you please show us table structure, sample data, and desired results.
Narrative is usually not enough information and tends to make the real issue
more difficult to uncover.
-- http://www.aspfaq.com/ (Reverse address to reply.) "Jeff" <gig_bam_takemeout_@verizon.net> wrote in message news:uEvMY5LcEHA.3988@tk2msftngp13.phx.gbl... > I need help in writing a statement with the following info. > > the field name i want to count is called country > i want to count each country and display the totals of each.. in one > statement.. > i have the following countries: > USA > Canada > UK > Austrialia > New Zealand > Denmark ( and will add new countries as needed) > > i tried this type of statement, but isnt working > > SELECT COUNT(Select country from rounds where country = 'USA') as Val1 > > am i am thr right track here? or all messed up as i believe i am. > Thanks > Jeff > >
- Next message: norris tc: "Re: databse owner in sp_attach_db"
- Previous message: Aaron [SQL Server MVP]: "Re: Select TOP dynamic..."
- In reply to: Jeff: "multi count"
- Next in thread: Jeff: "Re: multi count"
- Reply: Jeff: "Re: multi count"
- Reply: Rohtash Kapoor: "Re: multi count"
- Reply: Jeff: "Re: multi count"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|