Query

Поиск
Список
Период
Сортировка
От dayzman@hotmail.com (Michael)
Тема Query
Дата
Msg-id 48e30213.0406152231.6e19331c@posting.google.com
обсуждение исходный текст
Список pgsql-general
Hi,
If I have R(a integer PRIMARY KEY, b text, c text, d integer); and I
want to find how many different entries there are, (specified using b
and c instead of a), is "select count(distinct b||c) from R" an
appropriate query? Also, if I want to find how many of those that have
a different "d", can I use "select count(d) from R goup by title ||
author"? What if b and c are integers, then I wouldn't be able to
concatenate the 2 fields right?

Please help.

Thanks,
Michael

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Postgresql installation.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Using Large Object in PostgreSQL