SELECT
id,
UNNEST (ARRAY ['1', '2']) AS key,
UNNEST (ARRAY [grade_1_cnt, grade_2_cnt]) AS count
FROM schools;
#tips
SQ SQL Pro @sqlprofi · 4.91K subscribers SELECT
id,
UNNEST (ARRAY ['1', '2']) AS key,
UNNEST (ARRAY [grade_1_cnt, grade_2_cnt]) AS count
FROM schools;
#tips