Re: Query

Поиск
Список
Период
Сортировка
От Laconic2
Тема Re: Query
Дата
Msg-id 84GdnbDDS-xeM03dRVn-tw@comcast.com
обсуждение исходный текст
Ответ на Query  (dayzman@hotmail.com (Michael))
Список pgsql-general
"Michael" <dayzman@hotmail.com> wrote in message
news:48e30213.0406152231.6e19331c@posting.google.com...
> 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?


Try:

select count(1) from
(select distinct b, c from R);

However, your prof may not like this answer.




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

Предыдущее
От: ed.prochak@magicinterface.com (Ed prochak)
Дата:
Сообщение: Re: Query
Следующее
От: mike g
Дата:
Сообщение: Re: PostGres ODBC MFC Application