evlai
03-28-2006, 08:30 PM
I have a table with all the duplicate Campaign Code. I have actually tried to use "GROUP BY" bur still not able to come show the result i want.
Campaign Code Product Sku
SG1232454 GH123
SG1232454 GH134
SG1232454 GH167
AV1254321 GH123
AV5433232 GH123
AV5433232 GH143
AV5433232 GH195
I need a query to display the unique campaign code as below:
Campaign Code Product Sku Unique Campaign
SG1232454 GH123 1
SG1232454 GH134 0
SG1232454 GH167 0
AV1254321 GH123 1
AV5433232 GH123 1
AV5433232 GH143 0
AV5433232 GH195 0
Thanks
Campaign Code Product Sku
SG1232454 GH123
SG1232454 GH134
SG1232454 GH167
AV1254321 GH123
AV5433232 GH123
AV5433232 GH143
AV5433232 GH195
I need a query to display the unique campaign code as below:
Campaign Code Product Sku Unique Campaign
SG1232454 GH123 1
SG1232454 GH134 0
SG1232454 GH167 0
AV1254321 GH123 1
AV5433232 GH123 1
AV5433232 GH143 0
AV5433232 GH195 0
Thanks