Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: Get top N rows in each group with DBIx::Class

by chacham (Prior)
on Nov 27, 2017 at 08:31 UTC ( #1204324=note: print w/replies, xml ) Need Help??


in reply to Re^4: Get top N rows in each group with DBIx::Class
in thread Get top N rows in each group with DBIx::Class

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.

  • Comment on Re^5: Get top N rows in each group with DBIx::Class

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1204324]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2020-11-28 23:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?