Reply to Re: pivot table without aggregation?

Your name:

Reply:


Posted by Ed Murphy on 03/30/07 01:11

Plamen Ratchev wrote:

> SELECT SUM(CASE WHEN [Name] = 'Product A' THEN RankID ELSE 0 END) AS
> 'Product A',
> SUM(CASE WHEN [Name] = 'Product B' THEN RankID ELSE 0 END) AS
> 'Product B',
> SUM(CASE WHEN [Name] = 'Product C' THEN RankID ELSE 0 END) AS
> 'Product C'
> FROM PRODUCTS

I think SQL Server 2005 has a built-in pivoting function, but I've
never used it so I don't know the syntax.

[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

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