Investigate JSONB data

Return title and color as text for the green product.

Opening your local progress…

Show solution and explanation

Return title and color as text for the green product. This activity executes in a disposable PGlite PostgreSQL engine on your device.

SELECT title, metadata->>'color' AS color FROM products WHERE metadata->>'color' = 'green';