Can anyone help me how to extract the json array data which is stored in column "TimeCounterTotals" from this select query?? when I am passing hard coded data to json_to_recordset function, it works fine but how to do in select query?
select "CompanyId", json_to_recordset("TimeCounterTotals") as x("TimeTotal" decimal, "TimeCounterId" varchar)
from "TimeCalculationAndApprovals" where "TimeCounterTotals" is not null limit 1;