Subject | RE: [ib-support] SP question |
---|---|
Author | Leyne, Sean |
Post date | 2001-08-02T23:03:36Z |
> -----Original Message-----...
> From: s.beames@... [mailto:s.beames@...]
> Sent: Thursday, August 02, 2001 5:26 PM
> I've finally gotten a selectable SP syntax that works for my report,You should be able to do it in a single select statement, which goes:
> but it looks rather wordy to me! For my own edification, could
> someone more experienced please advise if there a neater way of doing
> this? I wanted one line per account showing the total charge for some
> period.
Select ACCNT_ID, SUM(CHARGE)
From JOBS
Where COMPLETED between :startDate and :endDate
Group By ACCNT_ID
Sean