drrocket5292
Technical User
I have a database that has a list of customer accounts, customer names and customer account codes. Its kind of complicated but there are all sorts of account codes and most of them are similar to each other. Some say the customer has been with us for more than a year some say more than three years. What I am trying to do is match a customers account to any other accounts that customer might have that are in the same group as this one. There are basically six groups of account codes. Account Type A under one year, Account Type B under one year, Account type A 1-3 years, Account type B 1-3 years, Account type A 3+years, Account type B 3+ years. Each one of these groups has like 15 codes in them that are all slightly different things but these differences are negligible to me. What I want to do is have something that says: take the account code of this account, if it is Account type A under 1 year, show me all of the other accounts that this one customer has that are also Account type A under 1 year. Does anyone know how I can do this? Thanks.