Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Akoya's scratchpad

by Akoya (Scribe)
on Feb 28, 2008 at 17:18 UTC ( #670943=scratchpad: print w/replies, xml ) Need Help??

How can I do the same thing this SQL accomplishes using DBIx::Class::Resultset?

select name, ip, environment, type, last_update from test where environment = 'PROD' and last_update in ( select max(last_update) from test where environment = 'PROD' group by type ) order by type

This lists the most recent records for each type for the 'PROD' environment.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2016-08-31 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (426 votes). Check out past polls.