🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #11338

Multiple counts

#11338
From: Andy Murphy
Date: Fri, 22 Nov 2002 11:19
10 lines
1211 bytes
Does anyone know how i would count the number of records via a distinct
selection.

i.e. Select distinct Agent_Name from Table1 brings me all the agents but I
would like to do a record count for each without having to do a select
count(*) for each one manually?

Thanks,

Andy
Technical Details
Message-ID: <3dde12b2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114a0e,edf94dfb88a4c551,start
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-11-22 03:31:00 PST
From: "Andy Murphy" <andy@rating-software-company.co.uk>
Newsgroups: borland.public.interbase.sql
Subject: Multiple counts
Date: Fri, 22 Nov 2002 11:19:10 -0000
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 217.37.204.145
Message-ID: <3dde12b2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1037963954 217.37.204.145 (22 Nov 2002 03:19:14 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!sn-xit-04!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail