Re: Problem with "NOT IN (subquery) - use NOT EXISTS

Поиск
Список
Период
Сортировка
От chester c young
Тема Re: Problem with "NOT IN (subquery) - use NOT EXISTS
Дата
Msg-id 20051113170701.47847.qmail@web54314.mail.yahoo.com
обсуждение исходный текст
Ответ на Problem with "NOT IN (subquery)  ("Steve SAUTETNER" <steve@sautetner.com>)
Список pgsql-sql
--- Steve SAUTETNER <steve@sautetner.com> wrote:
> SELECT * FROM famille WHERE famille_code NOT IN
> (SELECT DISTINCT famille_mere_famille_code FROM famille);"

try
select * from famille f1 where not exists
(select 1 from famille f2 where f1.famille_code = f2.famille_mere_famille_code);

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Problem with "NOT IN (subquery)
Следующее
От: "Christian Paul B. Cosinas"
Дата:
Сообщение: Re: Problem with "NOT IN (subquery)