You are here: Re: Results in Parallel columns « MsSQL Server « IT news, forums, messages
Re: Results in Parallel columns

Posted by Gene Wirchenko on 06/14/06 22:10

On 14 Jun 2006 14:26:00 -0700, "vivekian" <vivekaseeja@gmail.com>
wrote:

>I need to place the results of two different queries in the same result
>table parallel to each other.
>So if the result of the first query is
>
>1 12
>2 34
>3 45

select ... into cursor one

>and the second query is
>
>1 34
>2 44
>3 98

select ... into cursor two

>the results should be displayed as
>
>1 12 34
>2 34 44
>3 45 98

select one.*,two.*
from one full outer join two on one.pk=two.pk
with suitable changes for DBMS and table and column names.

>If a union is done for both the queries , we get the results in rows.
>How can the above be done.

Sincerely,

Gene Wirchenko

 

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

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