Created
March 25, 2015 10:23
-
-
Save timgaunt/564e6543045c50d90103 to your computer and use it in GitHub Desktop.
Find voucher code in uCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT TOP 100 | |
* | |
FROM | |
uCommerce_CampaignItem ci | |
LEFT JOIN uCommerce_Target t ON ci.CampaignItemId = t.CampaignItemId | |
LEFT JOIN uCommerce_VoucherTarget vt ON t.TargetId = vt.VoucherTargetId | |
LEFT JOIN uCommerce_ProductTarget pt ON t.TargetId = pt.ProductTargetId | |
WHERE | |
ci.Name = 'Campaign Item Name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment