You are here: Re: Newbie needing help creating query « MsSQL Server « IT news, forums, messages
Re: Newbie needing help creating query

Posted by Mintyman on 11/13/06 15:54

Hi Mark,

Thanks very much! I would never have gotten there on my own!

Mintyman


<markc600@hotmail.com> wrote in message
news:1163429919.872807.120980@b28g2000cwb.googlegroups.com...
> SELECT a.ProductID,
> a.Name,
> a.Description,
> p1.Price AS Price1,
> p2.Price AS Price2,
> p3.Price AS Price3,
> p4.Price AS Price4,
> p5.Price AS Price5
> FROM Product a
> LEFT OUTER JOIN ProductProgram p1 ON p1.ProductID=a.ProductID AND
> p1.Level=1
> LEFT OUTER JOIN ProductProgram p2 ON p2.ProductID=a.ProductID AND
> p2.Level=2
> LEFT OUTER JOIN ProductProgram p3 ON p3.ProductID=a.ProductID AND
> p3.Level=3
> LEFT OUTER JOIN ProductProgram p4 ON p4.ProductID=a.ProductID AND
> p4.Level=4
> LEFT OUTER JOIN ProductProgram p5 ON p5.ProductID=a.ProductID AND
> p5.Level=5
>

 

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

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