Re: Aggregates not allowed in WHERE clause?
От
Christopher Kings-Lynne
Тема
Re: Aggregates not allowed in WHERE clause?
Дата
Msg-id
GNELIHDDFBOCMGBFGEFOEENJCCAA.chriskl@familyhealth.com.au
Ответ на
Aggregates not allowed in WHERE clause? (Joachim Trinkwitz)
Список
Дерево обсуждения
Aggregates not allowed in WHERE clause? Joachim Trinkwitz <jtr@uni-bonn.de>
Re: Aggregates not allowed in WHERE clause? Christoph Haller <ch@rodos.fzk.de>
Re: Aggregates not allowed in WHERE clause? Joachim Trinkwitz <jtr@uni-bonn.de>
Re: Aggregates not allowed in WHERE clause? "Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
Re: Aggregates not allowed in WHERE clause? Achilleus Mantzios <achill@matrix.gatewaynet.com>
> Next I tried this one: > > SELECT kvvnr, max(lf_sem.semester) AS akt_semester > FROM lv, lf_sem > WHERE lv.semester = akt_semester; > > Now I got: 'Attribute 'akt_semester' not found' > > Is there another way to get what I want? What about: SELECT kvvnr FROM lv WHERE semester = (SELECT MAX(semester) FROM lf_sem); Chris
В списке pgsql-sql по дате отправления