Reply to Re: Please Help me!!!

Your name:

Reply:


Posted by David Mιndez on 04/03/07 12:39

Great!!!
thank you.

David.

"Ed Murphy" <emurphy42@socal.rr.com> wrote in message
news:4611e57f$0$27050$4c368faf@roadrunner.com...
> David Mιndez wrote:
>
>> I need to find the members that exists on the following select queries
>> (not union):
>>
>> SELECT DISTINCT CLIREAL FROM VENTAS WHERE CLIREAL NOT IN (SELECT CODE
>> FROM CLIENTES)
>> SELECT DISTINCT CLIREAL FROM VENTAS WHERE CLIREAL NOT IN (SELECT CODE
>> FROM CLIENTCONV)
>>
>> Basically I need to choose the rows VENTAS.CLIREAL that do not exists in
>> CLIENTES.CODE rows and that also do not exists in the CLIENTCONV.CODE
>> rows.
>
> select distinct clireal
> from ventas
> where clireal not in (select code from clientes)
> and clireal not in (select code from clientconv)
>
> Alternatively:
>
> select distinct clireal
> from ventas
> where clireal not in (select code from clientes
> union select code from clientconv)

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация