Advertisement
yudhaez0212

Untitled

Jan 19th, 2021
1,371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.43 KB | None | 0 0
  1. SELECT p.product_id , poi.product_code , pov.modifier as price , pov.modifier as list_price , pov.option_id , pov.variant_id , p.status , p.tracking
  2. FROM cscart_products p
  3. JOIN cscart_product_options_inventory poi ON poi.product_id = p.product_id
  4. JOIN cscart_product_option_variants pov ON (pov.option_id = SUBSTRING_INDEX(poi.combination, '_', 1) AND pov.variant_id = SUBSTRING_INDEX(poi.combination, '_', -1))
  5. WHERE p.tracking = "O"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement