You are here: Re: Join same columns from two tables « PHP SQL « IT news, forums, messages
Re: Join same columns from two tables

Posted by Stefan Rybacki on 08/11/05 02:08

Thomas Menzel wrote:
> Hi,
>
> I have two tabels. Table a and table b. Both tables habe a column named x. I
> need a sql statement, wich transfers the colum from a and b in the same
> colum in the resultset.
>
> Example:
>
> table a, column x
> cat
> dog
> duck
> human
>
> table b, column x
> cat
> duck
> bird
>
> result:
> cat
> dog
> duck
> human
> bird
>
>
> Best regards
> Thomas
>
>

You could simply use an UNION DISTINCT.

Regards
Stefan

 

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

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