i have a table filled with models,the models start year and end year and productid's that are assigned to it
ModelNo | StartYear | EndYear | ProductID |
0 | 1997 | 2000 | 511777 |
1 | 1998 | 1998 | 511789 |
what i'd like is an sql result as follows:
ProductID | Profile
511777 | 0-1997,0-1998,0-1999,0-2000
511789 | 1-1998
If anyone has any ideas as to how i could achieve this.
DPERROTT