Last active
August 29, 2015 14:01
-
-
Save bbengfort/2d732f24d18d36051aa0 to your computer and use it in GitHub Desktop.
CPS to Redfox Query
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 product.id, product.name, product.description, | |
coalesce(product.image, product.affiliate_image, product.thumbnail, product.affiliate_thumbnail) as image, | |
product.gender, product.age, category.name as original_category, | |
'' as label, '' as probability, '' as sublabel, '' as subprobability, | |
product.created, product.updated | |
FROM product | |
LEFT JOIN category on category.id = product.category_id | |
--LIMIT 10 | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment