Let us know if it works!
BTW, this is a tactic easily used with CTEs, where each CTE is like another step. With good naming (long table names) is can be self-explanatory too.
If you cannot use CTEs, just nest sub-tables. Same difference, though not as clear due to formatting.
In reply to Re^5: Get top N rows in each group with DBIx::Class
by chacham
in thread Get top N rows in each group with DBIx::Class
by 1nickt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |