Postgresql – Selecting data using jsonb data in WHERE clause
I have the below table - assume tags column always have top level string keys: name(TEXT) | tags(jsonb) -----------+------------------------------------------------------- teamA | {"color": "green", "zone": "primary"} teamB | {"color": "green", "zone": "primary", "role": "user"} teamC | {"uid": "32-232-2dswdwsd", "availability": "condensed"} Let's…