List Manager SQL error

I'm trying to get a dynamic list list to work  using the following expression but I keep getting the error ...

Cannot insert the value NULL into column 'customer_no', table 'impresario.dbo.T_LIST_CONTENT'; column does not allow nulls. INSERT fails. The statement has been terminated

SELECT DISTINCT a.customer_no
FROM T_ORDER_SEAT_HIST AS a WITH (NOLOCK)

join VS_PERF AS p WITH (NOLOCK)
on a.perf_no = p.perf_no

where p.perf_dt between getdate() and Getdate()+2

Any tips?

Cheers,

H

Parents Reply Children
No Data