0
I'm trying to do what I would call a "reverse count(*)" in PostgreSQL (8.4 +). I want my output to have the exact same number of rows as the number specified in the total column for each letter... Table 1: letter | total ------------- a | 3 b | 2 c | 4 d | 1 Expected table output: letter ---...