USE phoenix;

# Leipzig zum 01.10.2022 (Wiederholung vom 01.01.2022, 01.01.2021, 01.01.2019, 01.01.2018, 01.01.2017 und 01.01.2015):
UPDATE serviceplzcustomer SET srvpc_price = srvpc_price + 1.5 WHERE hq_id = 8 AND cs_id = 0 AND srvpc_price > 0;
INSERT INTO serviceplzhistory (srvp_id, srvp2_id, hq_id, cs_id, vht_id, usr_id, srvph_validfrom, srvph_price, srvph_discount)
  SELECT srvp_id, srvp2_id, hq_id, cs_id, vht_id, 0.00, '2022-10-01 00:00:00', srvpc_price, srvpc_discount FROM serviceplzcustomer WHERE hq_id = 8 AND cs_id = 0 AND srvpc_price > 0;
