Re: Column aliases for GROUP BY and HAVING
От
Rikard Bosnjakovic
Тема
Re: Column aliases for GROUP BY and HAVING
Дата
Msg-id
d9e88eaf0911251714j24716e15h28ea52c191f146f0@mail.gmail.com
Ответ на
Re: Column aliases for GROUP BY and HAVING (Tom Lane)
Список
Дерево обсуждения
Column aliases for GROUP BY and HAVING Rikard Bosnjakovic <rikard.bosnjakovic@gmail.com>
Re: Column aliases for GROUP BY and HAVING Tom Lane <tgl@sss.pgh.pa.us>
Re: Column aliases for GROUP BY and HAVING Rikard Bosnjakovic <rikard.bosnjakovic@gmail.com>
Re: Column aliases for GROUP BY and HAVING Kris Kewley <kris.kewley@gmail.com>
On Wed, Nov 25, 2009 at 20:35, Tom Lane wrote: [...] > HAVING is not included because (a) it wasn't historically, and (b) > the use-case for a bare column alias in HAVING would be pretty small > anyway. Your example wouldn't work even if HAVING acted the same > as GROUP BY/ORDER BY, since you didn't just write the alias but > tried to compare it to something else. Thank you for the explanation. I didn't fully understand the gory details, but it's of use to know that I cannot refer to an alias. -- - Rikard
В списке pgsql-novice по дате отправления