Reply to Re: SQL Union / Intersection

Your name:

Reply:


Posted by Greg D. Moore \(Strider\) on 05/25/05 03:29

"ZeldorBlat" <zeldorblat@gmail.com> wrote in message
news:1116962785.380752.74920@g49g2000cwa.googlegroups.com...
> Why use a sub-query at all?
>
> select SSN
> from tblPerson
> where MiddleInitial = 'X'
> or MiddleInitial = 'Y'
>
> select SSN
> from tblPerson
> where MiddleInitial = 'X'
> and MiddleInitial = 'Y'

This one won't work, since a MiddleInitial can't be both X AND Y.

>
> select SSN
> from tblPerson
> where MiddleInitial = 'X'
> and MiddleInitial != 'Y'
>

[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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация