Subject | Re: [firebird-support] Performance troubles |
---|---|
Author | Martijn Tonies |
Post date | 2005-10-27T11:36:39Z |
> > > select c.contactno from contacts cEhm, sure. But I'm not telling ... exercise for the reader and all... ;-)
> > > join gifts g where g.contactno = c.contactno
> > > where
> > > c.state in (1,2)
> > > and g.someotherfield = 'somvalue'
> > > group by contactno
> > > having sum(giftvalue)>100
> >
> >Well, at least we all agree to the solution on this one ;-)
>
> Almost - but you didn't spot Dmitry's deliberate error, did you? :-))
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com