I have two columns within a table that I am trying to write a query for.
I am trying to compare "Coupon #" with "Campaign #" ... so I can pull out only instances where the Coupon # is being used across multiple campaigns.
So for example, in the sample dataset below, 2 entries for 21645 should be the results from the query because 21645 is appearing in BOTH campaigns.
How to build this?
COUPON_NBR CAMPAIGN_NBR
21599 3200012
21621 3200008
21626 3200006
21627 3200008
21632 3200006
21633 3200008
21638 3200006
21639 3200008
21644 3200006
21645 3200010
21645 3200008
21649 3200009
21650 3200006
21651 3200008
21656 3200006
21657 3200008
I am trying to compare "Coupon #" with "Campaign #" ... so I can pull out only instances where the Coupon # is being used across multiple campaigns.
So for example, in the sample dataset below, 2 entries for 21645 should be the results from the query because 21645 is appearing in BOTH campaigns.
How to build this?
COUPON_NBR CAMPAIGN_NBR
21599 3200012
21621 3200008
21626 3200006
21627 3200008
21632 3200006
21633 3200008
21638 3200006
21639 3200008
21644 3200006
21645 3200010
21645 3200008
21649 3200009
21650 3200006
21651 3200008
21656 3200006
21657 3200008