Is using an if statment from within a query my best option?
I have a mailer that sends out a word of encouragement every morning to several of my clients’ employees. The messages are pre-written. Any client can actually change the message before for that day without affecting the message being sent out to my other clients. I do this by sending the clients the message for the day in advance.
Once a client edits the message it is saved to another table called edits. When the message for the day goes out, I need to loop through the edits table first, if the table is not null for that day, it sends the message from the edits table. If the edits table is null, the message is pulled from the daily table.
Can I do an if statement from within the query, if the table is null for that day then query the second table called daily for the message for that day?
