Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
aswinjames
Starting Member
5 Posts |
Posted - 2010-12-20 : 10:59:51
|
| Hey,I have a table as followsCustomer|Product|w1|w2|w3|w4|w5|w6C1|p1|10|10|10|20|20|40The required output must be likeCust|prod|WeekStart|weekend|voluneC1 |p1|w1|w3|10C1|p1|w4|w5|20C1|p1|w6|w6|40One thing that needs to be done is UN pivoting.How do I come up with week start and end dates..Aswin James |
|
|
robvolk
Most Valuable Yak
15732 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|