Postgresql – Convert Jsonb simple array into column group by
I have a simple table with a Jsonb array of phone numbers: CREATE TEMP TABLE IF NOT EXISTS user_info ( id serial, phone_numbers jsonb ); INSERT INTO user_info values (1, '["123456"]'),(2, '["564789"]'), (3, '["564747", "545884"]'); SQLFiddle: SQLFiddle Link now, I…