|
|
| The stupid question is the question not asked | |
| PerlMonks |
SQl logic inPerlby Anonymous Monk |
| on Jul 14, 2010 at 17:18 UTC ( #849572=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
Hi there Monks!
I don't know if should ask this question here but I might be lucky, maybe one of you had the same problem before. Here is what I have, my issue is if I don't have the year 2009 in the database I would like to have another option, and doing all in the SQL query instead of checking afterwards in Perl. My code here is returning both years when what I want is to return 2009 if found only, otherwise get the year 2010, but not both.Has anyone encountered such issue before?
I tried something like that, but its doesn't work:
Thanks for the help!!!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||