Hi All,
I am trying to whip up a quick query to pull all ticketing links for a specific production season. It should display 1 row for each date (if there is not a keyword associated with that specific perf, then I would like a null field). For some reason, I'm getting 2 rows for each date with a ticket link. Any ideas? Thanks!
SELECT p.perf_dt,p.perf_no, CASE WHEN tkw.tkw =8 THEN 'cart.mnhs.org/.../SelectSeating.aspx as varchar(10)) END
FROM t_perf pLEFT JOIN t_inventory i on p.perf_no = i.inv_noLEFT JOIN tx_inv_tkw tkw on i.inv_no = tkw.inv_no
WHERE p.prod_season_no=7246
ORDER BY p.perf_dt
Results look like this
Gawain and Mark,
Thanks for the detailed responses. This is all very helpful as I might have to pull together other queries in the future!