Re: Group by - Case insensitivity

Поиск
Список
Период
Сортировка
От Adam Ruth
Тема Re: Group by - Case insensitivity
Дата
Msg-id 67A0C8B0-C921-11D8-AD52-000A959D1424@intercation.com
обсуждение исходный текст
Ответ на Group by - Case insensitivity  (UMPA Development <dev@umpa-us.com>)
Список pgsql-general
Off the top of my head, I can think of a couple of ways.

select lower(name), count(*) from customer group by lower(name);

or

select min(name), count(*) from customer group by lower(name);

The second one works if you still want some semblance of the original
casing of the field.

On Jun 28, 2004, at 9:15 AM, UMPA Development wrote:

> Hello all!
>
> Is it possible to setup a group by to be case insensitive and if so
> how?
>
> Thank you!
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 8: explain analyze is your friend
>


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

Предыдущее
От: "W.B.Hill"
Дата:
Сообщение: Inconsistant DOW...
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Inconsistant DOW...