| Author |
Topic |
|
rebooot
Starting Member
9 Posts |
Posted - 2009-12-01 : 17:12:46
|
| I need someone to re-write this code for me for the SQL server 2008. I would greatly appreciate it:PARAMETERS SQLPeriodIndex Text ( 255 ), theMarket Text ( 255 ), theSegment Text ( 255 );TRANSFORM Sum(Choose([SQLPeriodIndex],[L4],[L12],[L24],[L52],[YTD],[YTG])) AS SumOfSELECT Data_3.TagFROM Data_3 INNER JOIN SKU_CONTENTS ON Data_3.Tag=SKU_CONTENTS.TAGWHERE (((Data_3.Market)=[theMarket]) AND ((SKU_CONTENTS.SEGMENT)=[theSegment]))GROUP BY Data_3.TagPIVOT Data_3.Fact;Cheers for all of your SQL Server gurus,Rebooot |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
rebooot
Starting Member
9 Posts |
Posted - 2009-12-01 : 19:38:29
|
| This is written in MS_ACCESS VBA code and I am trying to write it to upsize it to SQL Server 2005. |
 |
|
|
rebooot
Starting Member
9 Posts |
Posted - 2009-12-02 : 18:47:14
|
| WOW no answer!Is this problem that hard? No one has enough knowledge to tackle this? |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
rebooot
Starting Member
9 Posts |
Posted - 2009-12-02 : 19:28:05
|
| Hi Tara,What if I tell you what the final product needs to look like in SQL Server, would you be able to form a dynamic crosstab query? |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|