-- Blacklist batch 6

-- Week 6 ref3 = 'iZ2U3e'
INSERT INTO product_blacklist (product_id, group_id, market_id)
    SELECT productid, 1, (select id from markets where name = 'NL') FROM "product-products" WHERE ref3 = 'iZ2U3e'
    ON CONFLICT DO NOTHING;
INSERT INTO product_blacklist (product_id, group_id, market_id)
    SELECT productid, 2, (select id from markets where name = 'NL') FROM "product-products" WHERE ref3 = 'iZ2U3e'
    ON CONFLICT DO NOTHING;
INSERT INTO product_blacklist (product_id, group_id, market_id)
    SELECT productid, 3, (select id from markets where name = 'NL') FROM "product-products" WHERE ref3 = 'iZ2U3e'
    ON CONFLICT DO NOTHING;
INSERT INTO product_blacklist (product_id, group_id, market_id)
    SELECT productid, 7, (select id from markets where name = 'NL') FROM "product-products" WHERE ref3 = 'iZ2U3e'
    ON CONFLICT DO NOTHING;
INSERT INTO product_blacklist (product_id, group_id, market_id)
    SELECT productid, 1, (select id from markets where name = 'GB') FROM "product-products" WHERE ref3 = 'iZ2U3e'
    ON CONFLICT DO NOTHING;
INSERT INTO product_blacklist (product_id, group_id, market_id)
    SELECT productid, 2, (select id from markets where name = 'GB') FROM "product-products" WHERE ref3 = 'iZ2U3e'
    ON CONFLICT DO NOTHING;
INSERT INTO product_blacklist (product_id, group_id, market_id)
    SELECT productid, 3, (select id from markets where name = 'GB') FROM "product-products" WHERE ref3 = 'iZ2U3e'
    ON CONFLICT DO NOTHING;
INSERT INTO product_blacklist (product_id, group_id, market_id)
    SELECT productid, 7, (select id from markets where name = 'GB') FROM "product-products" WHERE ref3 = 'iZ2U3e'
    ON CONFLICT DO NOTHING;
