Hi Tess friends,
I'm attempting to write a query to find patrons who have attended a performance in a production season more than once (a repeat buyer) and I'm having a heck of a time finding the table/view that I should be using.
At first, I thought it had to do with 'vs_tkt_hist" as that came up when I was experimenting in list builder, but I don't see that table anywhere in SSMS.
Does anyone have any recommendations as to what table I should use? Any idea what I might be doing wrong? Any help would be greatly appreciated. :)
Thanks,
Tiffany Evans
Database Coordinator
Huntington Theatre Company
Oh, and here’s what I got so far from the manual edit in list builder…
Select Distinct a.customer_no
From V_CUSTOMER_WITH_PRIMARY_GROUP a (Nolock)
JOIN vs_tck_hist f (Nolock) ON f.customer_no = a.customer_no
JOIN (select bb.customer_no from vs_tkt_hist aa (nolock) JOIN V_CUSTOMER_WITH_HOUSEHOLD bb ON aa.customer_no = bb.expanded_customer_no where 1=1 group by bb.customer_no having count(distinct perf_no) >= 2) as e ON a.customer_no = e.customer_no
Where IsNull(a.inactive, 1) = 1
AND f.season in (67)
AND f.performance_name like 'BUT%'
AND f.performance_dt between '2013/09/07' And '2013/10/20 23:59:59'
Thanks. J
From: Tessitura Technical Forum [mailto:forums-technical@tessituranetwork.com] On Behalf Of Tiffany Evans Sent: Monday, September 30, 2013 4:36 PM To: Tiffany Evans Subject: [Tessitura Technical Forum] Query to find people who attended a performance in a production more than once
This message was sent automatically to you by www.tessituranetwork.com because you subscribed to the Tessitura Technical Forum. You may reply to this message to post to the Technical forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!