By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
CREATE TABLE
INSERT 0 11
INSERT 0 5
CREATE TABLE
INSERT 0 2
| ids | usernames | refs1 | refs2 | asset_ids | asset_count |
|---|---|---|---|---|---|
| {1,3,4,5} | {bobo,momo,lolo,popo} | {a,c} | {d,f} | {1,3,4,5,6,8} | 6 |
| {2} | {toto} | {b} | {e} | {2,7} | 2 |
SELECT 2
| temp_buffers |
|---|
| 8MB |
SHOW
CREATE FUNCTION
| ids | usernames | refs1 | refs2 | asset_ids | asset_count |
|---|---|---|---|---|---|
| {1,3,4,5} | {bobo,momo,lolo,popo} | {a,c} | {d,f} | {1,3,4,5,6,8,9,10} | 8 |
| {2} | {toto} | {b} | {e} | {2,7} | 2 |
| null | null | null | {z} | {11} | 1 |
SELECT 3