Query to find production\collection per zip code with a date range and patient status, for someone who wanted to know the zip codes he should advertise to:
SELECT address.zipcode, SUM("amt") AS Collection FROM admin.fullproclog
LEFT JOIN admin.patient ON patient.patid = fullproclog.patid
LEFT JOIN admin.address ON address.addrid = patient.addrid
WHERE "amt"> 0 AND "procdate">= Convert(DATE, '2018-03-10') AND "procdate"<= Convert(DATE, '2018-03-11') /* amt > 0 is Collection amt < 0 is Production */
AND patient.status IN (1,2,3) /* 1 = Active, 2 = Non-Patient, 3 = Inactive */