"be consistent" | |
PerlMonks |
Re: (Class::DBI Oracle SQL) rownum and group by woesby socketdave (Curate) |
on Jul 15, 2005 at 15:30 UTC ( [id://475250]=note: print w/replies, xml ) | Need Help?? |
Tyraziel, try this: select sum(t.amount) as total, a.id, t.id from accounts a, transactions t where a.id = t.id group by (a.id, t.id) having rownum < ? Where works before 'group by' and having works after.
In Section
Seekers of Perl Wisdom
|
|