Hi,
I'm having slight trouble with one of my SQL statements im trying to complete.... the statement is
SELECT * FROM seasons
WHERE end >= $num
AND start <= $num
What I want to do, is something like this...
SELECT * FROM seasons
IF (start > end)
{
WHERE end <= $num AND start <= $num
}
else
{
WHERE end >= $num AND start <= $num
}
But I can't figure out how to do it in SQL...
Any help is greatly appreciated...