Skip to content

Instantly share code, notes, and snippets.

@bbengfort
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbengfort/2d732f24d18d36051aa0 to your computer and use it in GitHub Desktop.
Save bbengfort/2d732f24d18d36051aa0 to your computer and use it in GitHub Desktop.
CPS to Redfox Query
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