Hello,
I have a sales transaction table that tracks products sold at different channel (in store, web, & telephone). The channel is identified using a channel id(1,2,3). I would like a query that would show me a unique list of products that were sold in all three channels. I've tried:
SELECT ProductID
FROM SalesTransaction
where ChannelID = 1 and ChannelID = 2 and ChannelID = 3
Group by ProductID
but I get no results. I thought this would be straight forward.
I have a sales transaction table that tracks products sold at different channel (in store, web, & telephone). The channel is identified using a channel id(1,2,3). I would like a query that would show me a unique list of products that were sold in all three channels. I've tried:
SELECT ProductID
FROM SalesTransaction
where ChannelID = 1 and ChannelID = 2 and ChannelID = 3
Group by ProductID
but I get no results. I thought this would be straight forward.