joebloeonthego
Technical User
Not the best description I know, but the problem is this:
I have a report that comes out basically like:
PN: 123456
puchase Jan 1 blah
sale Feb 23 blah
order Jan 19 blah
purchase Mar 02 blah
PN: 123457
etc. etc.
And would like to have it read out like:
PN Current next week week afer that week after that
------------------------------------------------------------
1234 blah blah blah blah
1235 blah blah blah blah
basically convert a vertical to horizontal. I would prefer to go from the cursor used to do the original vertical report, because I don't really know how they came up with it - if I had to I could probably build it up myself, but it'd be easier not to. or maybe it wouldn't be.. that's what I'm asking I guess.
Do I make a temp table with a bunch of extra fields for each week and then do a group by on pn putting the data in the new fields? I want to convert a bunch of lines into one line - I've never done this before, but I feel it's some sort of standard DB excercise you learn in school or something...
I have a report that comes out basically like:
PN: 123456
puchase Jan 1 blah
sale Feb 23 blah
order Jan 19 blah
purchase Mar 02 blah
PN: 123457
etc. etc.
And would like to have it read out like:
PN Current next week week afer that week after that
------------------------------------------------------------
1234 blah blah blah blah
1235 blah blah blah blah
basically convert a vertical to horizontal. I would prefer to go from the cursor used to do the original vertical report, because I don't really know how they came up with it - if I had to I could probably build it up myself, but it'd be easier not to. or maybe it wouldn't be.. that's what I'm asking I guess.
Do I make a temp table with a bunch of extra fields for each week and then do a group by on pn putting the data in the new fields? I want to convert a bunch of lines into one line - I've never done this before, but I feel it's some sort of standard DB excercise you learn in school or something...