Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Using DBIx::Class For Slightly Complex Queries

by rnewsham (Curate)
on Aug 14, 2015 at 11:06 UTC ( #1138564=note: print w/replies, xml ) Need Help??


in reply to Using DBIx::Class For Slightly Complex Queries

Here is an example of what I think you are trying to achieve. This is rough untested code so may not work but should give you some idea of where to go next. If you post your attempt at the query, with details of the errors you are getting, someone may be able to provide more help.

Schema::Room->search( { departments.deptid => { '!=', 1 }, -or => [ departments.dept => { '!=', 3 }, departments.dept => { '!=', 42 }, ], }, { join => ['departments'] group_by => 'departments.deptid', } );

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2020-11-24 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?