Skip to content

Instantly share code, notes, and snippets.

@bdwilliams
Created July 12, 2024 14:59
Show Gist options
  • Save bdwilliams/bb426399d98b8630c7f8d66393aa4b03 to your computer and use it in GitHub Desktop.
Save bdwilliams/bb426399d98b8630c7f8d66393aa4b03 to your computer and use it in GitHub Desktop.
id name code image image_url created_at updated_at product_id position is_published affiliate_id affiliate_updated_at
25800224 Gray/Orange 280 2024-07-02 16:41:24 2024-07-02 16:41:24 1984109 0 1 0 0000-00-00 00:00:00
25800227 Taupe 923 2024-07-02 16:41:24 2024-07-02 16:41:24 1984109 0 1 0 0000-00-00 00:00:00
25800229 Black/Black 1 2024-07-02 16:41:24 2024-07-02 16:41:24 1984109 0 1 0 0000-00-00 00:00:00
25800233 Black/Green 43 2024-07-02 16:41:24 2024-07-02 16:41:24 1984109 0 1 0 0000-00-00 00:00:00
25800237 Red 660 2024-07-02 16:41:24 2024-07-02 16:41:24 1984109 0 1 0 0000-00-00 00:00:00
25800289 Black 0 2024-07-02 16:41:25 2024-07-02 16:41:25 1984113 0 1 0 0000-00-00 00:00:00
25800297 Sand 921 2024-07-02 16:41:25 2024-07-02 16:41:25 1984113 0 1 0 0000-00-00 00:00:00
25800311 Black 0 2024-07-02 16:41:25 2024-07-02 16:41:25 1984127 0 1 0 0000-00-00 00:00:00
25800316 Sand 921 2024-07-02 16:41:25 2024-07-02 16:41:25 1984127 0 1 0 0000-00-00 00:00:00
id name company_id style_number upload_batch_id category_id image_url image short_description long_description direct_url created_at updated_at video_url fabric_1 fabric_2 technology_1 technology_2 alt_image_1_url alt_image_1_name alt_image_2_url alt_image_2_name alt_image_3_url alt_image_3_name alt_image_1 alt_image_2 alt_image_3 is_published unit_msrp last_indexed_at affiliate_id affiliate_updated_at image_represents_category name_virtual gaps_virtual unit_cost brand_rank average_rating n_reviews is_index_queued is_dropshippable channel_id
1984109 Men's Olympus 6 1666 AL0A85NJ 0 996 2024-05-31 10:58:05 2024-07-10 07:30:32 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 175.00 2024-07-10 07:30:32 0 0000-00-00 00:00:00 0 0.00 0 0.00 0 0 0 1
1984113 Men's Olympus Hike Low GTX 2 1666 AL0A85NM 0 1605 2024-05-31 10:58:08 2024-07-10 07:30:32 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 200.00 2024-07-10 07:30:32 0 0000-00-00 00:00:00 0 0.00 0 0.00 0 0 0 1
1984127 Women's Olympus Hike Low GTX 2 1666 AL0A85NN 0 1605 2024-05-31 10:58:21 2024-07-10 07:30:33 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 1 200.00 2024-07-10 07:30:33 0 0000-00-00 00:00:00 0 0.00 0 0.00 0 0 0 1
select * from products where name in ("Women's Olympus Hike Low GTX 2", "Men's Olympus 6", "Men's Olympus Hike Low GTX 2")
select * from colors where product_id in (select id from products where name in ("Women's Olympus Hike Low GTX 2", "Men's Olympus 6", "Men's Olympus Hike Low GTX 2"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment