Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Using DBIx::Class For Slightly Complex Queries

by rnewsham (Curate)
on Aug 14, 2015 at 11:06 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1138564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found