select (CURRENT_TIMESTAMP - '60 days'::interval);
This shows me a current time stamp with an interval of 60 days getting subtracted.
SELECT VALUE
FROM schema_name.some_parameter
WHERE some_parameter.NAME LIKE 'some_reference_name'
I want to add the above query in SELECT
so that I don't need to add the hardcoded data for 60 days. I want to get it through the parameter variable.
Basically i need to use nested queries where the second query gets me the 60 days value i.e. hardcoded in first query.
Is there a possible solution for my problem?