SQL: LT_TKT_HIST vs Payment Method ID

Dear Community,

I'm wanting to return data from LT_TKT_HIST where payment method = x ....
but pmt_method is not available in the table.

So I try to link LT_TKT_HIST to a table that has payment method... like T_PAYMENT by linking customer_no..
but this does not seem to work and is returning everything regardless of payment type. 

Can this be done? Help needed 

---SQL Example:

SELECT DISTINCT

a.customer_no,
a.perf_name,
a.perf_dt,
a.order_dt,
a.tck_amt,
a.num_seats,
a.location,
b.pmt_method 

FROM  LT_TKT_HIST a, T_PAYMENT b

WHERE

a.customer_no = b.customer_no AND
b.pmt_method = x 

 

Parents Reply Children
No Data