I have data that looks like inside a json table in postgres with a column called content has data similar to
{schd:[{key1:val1, key2:val2}]}
The way I extracted the key was
jsonb_array_elements('content'->'schd')->'key1'
However I cannot use this to join/on as I receive the error
ERROR: argument of JOIN/ON must not return a set
I tried using LATERAL but I need clarification on whether this creates a cross join because the output does not look quiet right.
Are there any suggestions on other methods I should employ here.