I need to access AP sales by customer from a database using 3 tables:
tickets
paymentmethod
customers
The problem is that the program that generates the data does not assign a payment type for any sales ticket with zero balance. The payment methods are cash, check, AP (paymentmode = 1,2,3)
I would like to pull up all tickets for a specific customer where paymentmethod.mode=3 OR tickets.amount=0
another way is
paymentmethod.mode=3 OR isnull(paymentmethod.mode)
Thanks in advance,
Jim