Ok, i have a question about a select query
lets say i have two tables
we call them
customers with the following fields customerID, dateentered, status
and customermembers with the following fields
customerid, membershipid, purchasedate, status.
what i wanted to do is get all customers that do not have membership and the customers that had memberships but was cancelled, terminated, expired. and count them all
the problem i am having our database is not really good for example there could be a customer that had a membership but reactivated it later so if i select the non active members this customer should not show up on my list but the problem is he does show up because of the customer history.
how can i get arround this. this is making me crazy as simple it may sounds i am stuck.
any help is apreciated.