|
|
|
|
|
by commandlinefan
2406 days ago
|
|
Are you saying you can't use column aliases in group by? What version of Postgres are you using? I just tried it in 11.5 and it worked: # select cust_id as c, sum(avail_balance) as b from account group by c order by b;
|
|