I want to replace column name on where clause. But the problem is be replace string has quotation mark.
TBL407.[POSTINGDATE] >= '2023-01-01 00:00:00' AND TBL407.[POSTINGDATE] <= '2023-01-31 23:59:59'
It should be replace with [POSTINGDATE] -> [Posting Date]
When I tried to replace like this;
REPLACE('TBL407.[POSTINGDATE] >= '2023-01-01 00:00:00' AND TBL407.[POSTINGDATE] <= '2023-01-31 23:59:59'','POSTINGDATE', 'Posting Date')
Of course it's not working. The quotation mark break this. How can I do that?