You are here: Re: Combine multiple records into single row « MsSQL Server « IT news, forums, messages
Re: Combine multiple records into single row

Posted by Jason Lepack on 03/29/07 17:15

Examples:
http://builder.com.com/5100-6388_14-6143761.html

PIVOT will only work if you have SQL SERVER 2005 otherwise you will
use the CASE method.

On Mar 29, 12:43 pm, "franzey" <fran...@gmail.com> wrote:
> This is how the data is organized:
>
> vID Answer
>
> 12 Satisfied
> 12 Marketing
> 12 Yes
> 15 Dissatisfied
> 15 Technology
> 15 No
> 32 Strongly Dissatisfied
> 32 Marketing
> 32 Yes
>
> What I need to do is pull a recordset which each vID is a single row
> and each of the answers is a different field in the row so it looks
> something like this
>
> vID Answer1 Answer2 Answer3
>
> 12 Saitsfied Marketing Yes
>
> etc...
>
> I can't quite get my mind wrapped around this one.

 

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

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