Re: COUNT(*) to find records which have a certain number of

Поиск
Список
Период
Сортировка
От T E Schmitz
Тема Re: COUNT(*) to find records which have a certain number of
Дата
Msg-id 414F1A8B.2080101@numerixtechnology.de
обсуждение исходный текст
Ответ на Re: COUNT(*) to find records which have a certain number of  (Rod Taylor <pg@rbt.ca>)
Список pgsql-sql
Hi Rod,

Rod Taylor wrote:

> On Mon, 2004-09-20 at 12:19, T E Schmitz wrote:
> 
>>I figured it eventually. (The only thing I don't know is where to put
>>the ORDER BY.)
> 
> 
> Try this:
>         
>         SELECT brand_name, model_name
>           FROM (SELECT ... INTERSECT SELECT ...) AS t
>         ORDER BY ...

That does the trick. You're a genius ;-)

-- 


Regards/Gruß,

Tarlika


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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: COUNT(*) to find records which have a certain number of
Следующее
От: Greg Stark
Дата:
Сообщение: Re: COUNT(*) to find records which have a certain number of dependencies ?