C
CDM
I'm trying to create a report based on an SQL statement that has me a little
stumped. Let me start with the fields in my table:
Customer_Id
Group_Id
BalanceDue
PastDue
I want to create an SQL statement that selects a list of customers with a
past due balance. However, some customers have multiple accounts and I use
the Group_Id field to "group" those related accounts. If one account has a
past due balance I want all the related accounts to show up on the list
whether or not they are past due. That's the part I'm having trouble with.
Any ideas out there?
stumped. Let me start with the fields in my table:
Customer_Id
Group_Id
BalanceDue
PastDue
I want to create an SQL statement that selects a list of customers with a
past due balance. However, some customers have multiple accounts and I use
the Group_Id field to "group" those related accounts. If one account has a
past due balance I want all the related accounts to show up on the list
whether or not they are past due. That's the part I'm having trouble with.
Any ideas out there?