Reply to Re: NULL values in a SELECT in another SELECT

Your name:

Reply:


Posted by Hiho on 01/24/08 13:23

Thanks for your answers

P. Ratchev :

> Is this a valid query? I mean if the UNION of the two SELECT statements
> returns more than a single value then you will get an error (at least on SQL
> Server).

Fortunately, it's impossible that the UNION returns more than 1
value ! Thanks for your explanations...


S. Rielau :

> > SELECT
> > x1,
> > x2,
>
>
> X.x3
> FROM ... ,
>
>
> > ( SELECT ... FROM ... WHERE ...
> > UNION
> > SELECT ... FROM ... WHERE ...) as X.x3

Unfortunately, this can't work in my case, because, in my case, I
would have :
SELECT ...
FROM X,
(SELECT ... FROM Y WHERE Y.a=X.a
UNION
............)

The 2nd "FROM" depends on the 1st.

Sorry, I shoud be more precise.

Hiho

[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

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