Re: Problem with view

Поиск
Список
Период
Сортировка
От wieck@debis.com (Jan Wieck)
Тема Re: Problem with view
Дата
Msg-id m12cE7I-0003kGC@orion.SAPserv.Hamburg.dsh.de
обсуждение исходный текст
Ответ на Problem with view  (Wenjin Zheng <wenjin.zheng@lsbc.com>)
Ответы Re: Problem with view  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> I have got another problem.  I have a table(table tempOne) that has two
> fields, seqid(int) and phredscore(int).  They are one to many relationship,
> e.g. one seqid has many phredscore.  I would like to get the row that has
> the max(phredscore).  So I first created a view as follow:
> "create view maxphred as select seqid, max(phredscore) as phredscore from
> tempOne group by seqid;"
   Views  are  known to have severe problems with aggregates and   grouping.  And once again  these  are  problems  we
want to   tackle with the parse-/querytree overhaul.
 
   Oh man - this is one of the most important things I see.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#========================================= wieck@debis.com (Jan Wieck) #




В списке pgsql-hackers по дате отправления:

Предыдущее
От: wieck@debis.com (Jan Wieck)
Дата:
Сообщение: Re: procedure returns a tuple
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem with view