I have two tables in postgresql.
- the first (product) has sku json row ([149461190])
- the second (item) has an ordinary sku column
How can I join them on sku? I tried this, but it didn't work. cannot recognize input near 'jsonb_to_recordset' '(' 'ps' in joinSourcePart
select * from product ps
, jsonb_to_recordset(ps.sku -> 'ps_sku') as (sku text)
join item v using sku
itemtable do you want to join?