From 2e84d53a05bd80e4d4c22e675018d1116e9dd976 Mon Sep 17 00:00:00 2001 From: dtookey Date: Fri, 8 Apr 2022 13:54:44 -0400 Subject: [PATCH] we're up to the hail mary portion of the initial setup. --- src/sql/0-run-first/billing.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sql/0-run-first/billing.sql b/src/sql/0-run-first/billing.sql index 8008b39..caaea6c 100644 --- a/src/sql/0-run-first/billing.sql +++ b/src/sql/0-run-first/billing.sql @@ -8,11 +8,13 @@ SELECT pkey, accepted_date, (qty * default_price) AS fee, invoice_accepted -FROM billing; +FROM billing +where invoice_accepted = 1; + CREATE INDEX ref_num ON billing_report (refNumber); CREATE INDEX div_idx ON billing_report (division); -# So this little ditty will replace the raw proejct_type info with a prettified string. Only problem is it takes more than +# So this little ditty will replace the raw project_type info with a prettified string. Only problem is it takes more than # 10 minutes to run on our t3a.micro ec2 instance. # UPDATE billing_report # SET division = IF(