You are here: Re: Tripling end results of a query « MsSQL Server « IT news, forums, messages
Re: Tripling end results of a query

Posted by Jeffrey Sheldon via SQLMonster.com on 08/17/05 21:04

Razan,

THANK YOU, this did it

Jeff

Razvan Socol wrote:
>Try this:
>
>SELECT X.* FROM (
> select DISTINCT a.project_id
> from project as a, project_cost_element as b
> where a.project_id = b.project_id
> and a.project_status in ('T','A')
> and b.cost_element_id between '7012000' and '7012999'
>) X CROSS JOIN (
> SELECT 1 N UNION SELECT 2 UNION SELECT 3 UNION SELECT 4
>) Y
>
>Razvan


--
Message posted via http://www.sqlmonster.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

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