Reply to Re: Turning Rows into Columns

Your name:

Reply:


Posted by Plamen Ratchev on 01/23/07 18:24

I have not done deep analysis on performance but I would guess there will
not be much difference. It seems the PIVOT operator in SQL Server 2005
applies similar logic to the one used with the CASE technique. Using the
CASE technique is very efficient because it scans the base table only once.
You can always compare execution plans for the particular case and see which
one performs better.

The PIVOT operator is a bit confusing at first look and takes time to get
used to the syntax. One benefit is that it allows writing shorter code.

Regards,

Plamen Ratchev
http://www.SQLStudio.com

[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

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