Is there a way to only execute part of a WHERE statement using some sort of IF-THEN statement based on data in the database?
The code below displays scheduled tasks f