You are here: Re: View from a merge of two tables « MsSQL Server « IT news, forums, messages
Re: View from a merge of two tables

Posted by Tom Cat on 05/15/06 21:41

That worked great! Never knew about this UNION ALL thing. Thanks!

SQL wrote:
> This should do it
>
> CREATE VIEW AssignedTo
> AS
> SELECT EmployeeID as ID,FirstName + LastName AS LongName
> FROM tblEmployees
> UNION ALL
> SELECT DeptID,LongName
> FROM tlkpDept
>
> Use Query Analyzer not Enterprise Manager I forgot if EM let's you use
> UNION
>
> Denis the SQL Menace
> http://sqlservercode.blogspot.com/

 

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

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