🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Extract

#698
From: Serra
Date: Wed, 25 Jul 2007 06:05
24 lines
1178 bytes
IB 6.02

Table :
CDate      Total
---------------------
01/20/07     100
01/25/07     200
02/10/07     300
02/25/07     400
03/28/07     500

Requested Result :
Month    SumTotal
--------------------------
01              300
02              700
03              500

I tested
select extract(month from cdate), sum(total)
group by cdate
but i couldnt get eachmonth's total

Thank you.
Technical Details
Message-ID: <46a6e831$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,6fd982b7bb1d6c61,start
X-Google-Attributes: gid114a0e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Serra" <no@no.com>
Newsgroups: borland.public.interbase.sql
Subject: Extract
Date: Wed, 25 Jul 2007 09:05:39 +0300
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 88.240.151.37
Message-ID: <46a6e831$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1185343537 88.240.151.37 (24 Jul 2007 23:05:37 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail