ag4ve has asked for the wisdom of the Perl Monks concerning the following question:
i am generating a report with numbers of records. however when i do this:
### unique transits for org my $orguniq_rs = $org_rs->search( {}, { group_by => [ qw/name/ ] } ); ### unique transits for org type cargo my $one_rs = $orguniq_rs->search( { 'type' => { '=' => 'one' } } ); ### unique transits for org type tanker my $two_rs = $orguniq_rs->search( { 'type' => { '=' => 'two' } } ); ### unique transits for org type other my $other_rs = $orguniq_rs->search( { 'type' => { '!=' => [ 'one', 'two' ] } } );
now, what should happen is, one + two + other = uniqorg (ie, total) however, other is showing up with the same number of records as the total. i've tried to do:
and -and [ .. ]. if anyone has *any* suggestions, i'd appreciate it.-or [ 'type' => { '!=' => [ 'one', 'two' ] } ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dbic record don't add up
by moritz (Cardinal) on Apr 26, 2011 at 14:14 UTC |