SQL
Sql
code posted
created at 20 Mar 15:24
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
/* Add $.08 to all USPS Domestic First-Class Rates */ UPDATE `weight_zone_service_domestic` SET shipping_cost = (shipping_cost + .08) WHERE `service` LIKE '1' AND service_name LIKE '%First-Class%'; /* Raise minimum to $2.75 for all USPS Domestic First-Class Rates */ UPDATE `weight_zone_service_domestic` SET shipping_cost = 2.75 WHERE shipping_cost < 2.75 AND `service` LIKE '1' AND service_name LIKE '%First-Class%'; /* Add $.20 to all USPS Domestic Priority Mail Rates */ UPDATE `weight_zone_service_domestic` SET shipping_cost = (shipping_cost + .20) WHERE `service` LIKE '1' AND service_name LIKE '%Priority%'; /* Add $.45 to all USPS International (Non-Canada) First-Class Mail Rates */ UPDATE `weight_service_international` SET shipping_cost = (shipping_cost + .45) WHERE `service` = '1' AND service_name LIKE '%First-Class%' AND excluding_canada = '1'; /* Add $6.39 to all USPS International (Non-Canada) Priority Mail Rates */ UPDATE `weight_service_international` SET shipping_cost = (shipping_cost + 6.39) WHERE `service` = '1' AND service_name LIKE '%Priority%' AND excluding_canada = '1'; /* Add $3.00 to all USPS International (Canada) Priority Mail Rates */ UPDATE `weight_service_international` SET shipping_cost = (shipping_cost + 3.00) WHERE `service` = '1' AND service_name LIKE '%Priority%' AND excluding_canada = '0'; /* Add $.37 to all USPS International (Canada) First-Class Mail Rates */ UPDATE `weight_service_international` SET shipping_cost = (shipping_cost + .37) WHERE service = '1' AND service_name LIKE '%USPS First-Class%' AND excluding_canada = '0' |
1.6 KB in 3 ms with coderay