Re: DISTINCT ON not working...?

Поиск
Список
Период
Сортировка
От Marcin Stępnicki
Тема Re: DISTINCT ON not working...?
Дата
Msg-id pan.2007.02.20.12.33.55.976823@gmail.com
обсуждение исходный текст
Ответ на Re: DISTINCT ON not working...?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: DISTINCT ON not working...?  ("Phillip Smith" <phillip.smith@weatherbeeta.com.au>)
Список pgsql-sql
Dnia Tue, 20 Feb 2007 15:36:32 +1100, Phillip Smith napisał(a):

> Removing the CASE statement all together:
> SELECT  DISTINCT ON (ean)
>       ean,
>       count(*)
> FROM    TMPTABLE
> WHERE   code NOT IN (SELECT code FROM stock_deleted)
>  AND    ean IS NOT NULL
> GROUP BY ean
> 
> Still gives me:
>     3246576919422    2

Wild guess - have you tried reindexing this table? I haven't seen
corrupted indexes since 7.1, though - it usually means subtle hardware
problems.

-- 
| And Do What You Will be the challenge | http://apcoln.linuxpl.org
|    So be it in love that harms none   | http://biznes.linux.pl
|   For this is the only commandment.   | http://www.juanperon.info
`---*  JID: Aragorn_Vime@jabber.org *---' http://www.naszedzieci.org 




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

Предыдущее
От: Achilleas Mantzios
Дата:
Сообщение: Re: can someone explain confusing array indexing nomenclature
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: can someone explain confusing array indexing nomenclature