Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
nested array to table
drop table if exists x cascade; create table x(name text, gender text); insert into x (name, gender) select t ->> 'name', t ->> 'gender' from jsonb_array_elements( '[ { "name": {first: "a", last: "b"}, "gender": "male" }, ]'::jsonb) t; select * from x;
run
|
edit
|
history
|
help
0
SQL Movie-Rating Query Exercises
simple add function on sql
Update as a function result
Return IDs where there are exactly 3 occurrences1
1
Branch
book suggestion
postgresql
2
1097. Game Play Analysis V