Add if statement from Retool in SQL query

Hey @thim-jbm! It sounds like you might be looking for something like this:

Let me know if you have any questions!

https://community.retool.com/t/sql-cheatsheet-best-practices-for-different-flavors-of-sql-syntax/23902