Re: Can anyone figure out this MySQL query?
From: <do-not_at_spam.me>
Date: Wed, 30 Aug 2000 12:00:33 GMT
Message-ID: <39acf72e.85704937_at_news.arnes.si>
Date: Wed, 30 Aug 2000 12:00:33 GMT
Message-ID: <39acf72e.85704937_at_news.arnes.si>
I will try the last solution you presented in the meantime and see how
that pans out.
 
Thanks again,
 
On Wed, 30 Aug 2000 09:52:48 GMT, peterbroers_at_rhbcml.leidenuniv.nl
(Theo Peterbroers) wrote:
 
>Simple, if you are only interested in a case with two customers:
  Chris
>SELECT a.*
>FROM Invoices as a, Invoices as b
>WHERE a.CustomerNo in (1,2)
>  AND b.CustomerNo in (1,2)
>  AND a.CustomerNo <> b.CustomerNo
>  AND a.HotelNo = b.HotelNo
>The trick is to use two aliases (a and b) for the same table.
Received on Wed Aug 30 2000 - 14:00:33 CEST
