You are here: Re: Help with SQL query? « PHP SQL « IT news, forums, messages
Re: Help with SQL query?

Posted by Stefan Rybacki on 09/05/05 11:21

Martin wrote:
> Stefan:
>
> Thanks. The only thing I had to debug was to change UNION to UNION
> ALL. UNION returns only unique values; UNION ALL returns all values.
>
> Now, for my education, why is the "x" just ahead of GROUP BY
> necessary? If I remove it, no records are returned, so it's obviously
> needed. But I don't understand what it actuall IS.
>

You have always to name a derived table, I just called it x thats all.

Stefan

PS: I don't know your db design at all but if you want to do such things, please review
your design

> Martin
> ...
>

 

Navigation:

[Reply to this 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

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