Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

DBIx::Class Build a Where Clause with multiple ORs and ANDs

by phildeman (Scribe)
on Jan 03, 2018 at 04:45 UTC ( #1206574=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    WHERE status='Review' OR
                  ( ( status='Offered' OR
    ...
                     ( sent_email is NULL OR
                       sent_email='0000-00-00')
                 )
    
  2. or download this
    WHERE ( status='Offered' OR
                    status='Denied' OR
    ...
                    status='Conditional Offer') AND
                  ( sent_email is NULL OR
                    sent_email='0000-00-00');
    
  3. or download this
    my @proc_requests = $schema->resultset( 'TblRequests' )->search({
                    -or => [
    ...
                                    ],
                                ],
                    });
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1206574]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2019-10-16 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?