Re: DUPS in tables columns ERROR: column ". . . " does not exist

Поиск
Список
Период
Сортировка
От Lew
Тема Re: DUPS in tables columns ERROR: column ". . . " does not exist
Дата
Msg-id K_SdnaoWcKroXifVnZ2dnUVZ_oqdnZ2d@comcast.com
обсуждение исходный текст
Ответ на Re: DUPS in tables columns ERROR: column ". . . " does not exist  ("Albretch Mueller" <lbrtchx@gmail.com>)
Список pgsql-general
Albretch Mueller wrote:
>  Also I know there is a DISTINCT keyword, but I also need to know how
> many times the particular data in the column is repeated if it is,
> that is why I need to go:
> ~
>  SELECT md5, COUNT(md5) AS md5cnt
>  FROM jdk1_6_0_07_txtfls_md5
>  WHERE (md5cnt > 1)
>  GROUP BY md5
>  ORDER BY md5cnt DESC;

Use HAVING instead of WHERE.

--
Lew

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

Предыдущее
От: Lew
Дата:
Сообщение: Re: ERROR: relation . . . does not exist
Следующее
От: "Mike"
Дата:
Сообщение: advisory locks in stored procedures