could anyone provide how to edit codes to include multiple zip codes in a list manager (that also can be used in extractions?) And should I use = or Like?
You can get really fancy when pulling addresses.
Here’s a query from an extraction segment that looks for people who have tickets in a few seasons, and who are on a particular list, and who have an address that’s valid for mailing on a particular date, where that address is located in one of the counties near or next to the theaters where we perform:
Select Distinct a.customer_no
From V_CUSTOMER_WITH_PRIMARY_GROUP a (Nolock)
JOIN VS_TCK_HIST e (Nolock) ON e.customer_no = a.customer_no
JOIN T_LIST_CONTENTS f (Nolock) ON f.customer_no = a.customer_no
cross apply FT_GET_ADDRESS('5/13/2015',null,null,a.customer_no) b
Where IsNull(a.inactive, 1) = 1
AND e.season in (67,75,82)
AND f.list_no = 46084
AND b.address_no in (select address_no from VS_ADDRESS where inactive = 'N' and geo_area in (7,8,9,10))
The FT_GET_ADDRESS() function is great when you’re trying to limit list pulls to certain locations or purposes. It pulls address based on four parameters—mailing date, mail purpose, label, and customer_no. (We’re still on Tess version 11. This would have to have been updated for version 12 to account for expanded mail purposes.)
Lucie
______________________________Lucie SpielerIT Development and Training Manager
Florida Grand Opera