Re: Grab data WHERE table.ID NOT LIKE otherTable.ID

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Grab data WHERE table.ID NOT LIKE otherTable.ID
Дата
Msg-id Pine.BSF.4.21.0107101608520.94472-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Grab data WHERE table.ID NOT LIKE otherTable.ID  ("Mark G. Franz" <mgfranz@pe.net>)
Список pgsql-general
On Fri, 6 Jul 2001, Mark G. Franz wrote:

> Here is my SQL;
>
> "SELECT Registration.CustomerID, Customer.CustomerID AS CustID, Firstname,
> Lastname, Username, Password, Question, Answer, Email, Age, Gender, Address,
> City, State, Zip FROM Customer, Registration WHERE Customer.CustomerID NOT
> LIKE Registration.CustomerID"
>
> I'm trying to return all the records from Customer that have not registered
> in Registration, so the psuedo sql would read;
>
> Return everything from all fields in Customer where the ID is NOT in the
> Registration table.  Any ideas?

Maybe:
select ... from Customer where NOT EXISTS (Select * from
 Registration where Customer.CustomerID LIKE Registration.CustomerID)


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

Предыдущее
От: Laurent HERVE
Дата:
Сообщение: Set priority for requests
Следующее
От: "Fabrizio Mazzoni"
Дата:
Сообщение: help with a rule...