Here's an idea... Use the Pivot Keyword... available in sql2005
Then after you have this working, outputting the column names as data values, embed this entire sql statemnt as the subquery inside an outer Select statement, where you Alias the column names as "Language1", "Language2" etc...
Select Z.Arabic as Language1, Z.Botwanese as Language2, etc.
From (Inner Pivot Query Here ) Z
Charles Bretana
2008-12-19 02:52:34