Reply to Re: MSSQL - DTS Package - Find distinct rows - Output to TXT file - ActiveX?

Your name:

Reply:


Posted by Ed Murphy on 06/13/07 04:25

undercups wrote:

> The answer is to write 3 queries, 1 for each situation you describe
> and link the output using the UNION ALL statement
>
> Something like
>
> SELECT a.id, a.col1, a.col2, a.col3, b.col4 FROM table1 a JOIN table2
> b on a.id = b.id
> WHERE a.col1 <> b.col1
> UNION ALL
(etc.)

The problem is that, if the tables don't have primary keys, then they
may not have a column like 'id'. (Or maybe they do, and it just isn't
defined as a primary key - in which case, why not?)

[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

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