|There's more than one way to do things|
SQl logic inPerlby Anonymous Monk
|on Jul 14, 2010 at 17:18 UTC||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!!!