Hi @Ashwin_DSA ,

thanks for the quick answer!

This is actually working, great!

However, when the variable gets replace, the value is put into ' (single quotes) making the example statement I used above an incorrect SQL statement. 
Any idea how to get rid of those single quotes?

Regards,
Daniel