Hello,
I learn SQL Server from the beginning, being newbie in this field.
I have exemplary table
ID Device UsedBy From To
--------------------------------------------------
1. PC1 Mark 2002/02/02 2003/02/02
2. PC1 Bryan 2003/02/02 2004/02/02
3. PC1 Chris 2004/02/02 2005/02/02
I would like to obtain single column:
ID Value
--------------------------------------------------
1. PC1
2. Mark, 2002/02/02, 2003/02,02
3. Bryan, 2003/02/02, 2004/02,02
4. Chris, 2004/02/02, 2005/02,02
Could you help with that. Possibly it is trivial, for me still hard.
Thank You in advance.
Paul
I learn SQL Server from the beginning, being newbie in this field.
I have exemplary table
ID Device UsedBy From To
--------------------------------------------------
1. PC1 Mark 2002/02/02 2003/02/02
2. PC1 Bryan 2003/02/02 2004/02/02
3. PC1 Chris 2004/02/02 2005/02/02
I would like to obtain single column:
ID Value
--------------------------------------------------
1. PC1
2. Mark, 2002/02/02, 2003/02,02
3. Bryan, 2003/02/02, 2004/02,02
4. Chris, 2004/02/02, 2005/02,02
Could you help with that. Possibly it is trivial, for me still hard.
Thank You in advance.
Paul
Comment