January 2, 2007 at 5:41 am
HI, I have the following Data (for example);
Job Number Date Notes
1 11/12/06 Dummy Data
1 12/12/06 Another Dummy Data Line
2 11/12/06 Just another test line
2 10/12/06 test
I require the final output (or tempoary table/view) as;
1 Dummy Data, Another Dummy Data Line
2 test, Just another test line
I'm using a SQL view to achieve the output of notes sorted by date for each job number
I can't get SQL View to accept a GROUP BY or DECLARE variables to build the string
Any pointers would be helpful?
January 2, 2007 at 6:38 am
- Which version of sqlserver are you using ??
- With sql2000 you may want to take a look at user defined functions to accomplish this
- with sql2005 a pivot might help out
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data and code to get the best help
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply