So I have table with "data" type JSONB column. I want do some calculations add/sub between values in the row. How I can do that?
psql> select 2 + ("data"->'field') - ("data"->'anotherField') from js_data_table;
This one produces an syntax error [42601].