Hi, I'm new here, and still a noob in sql.
This is my query
SELECT Payments.ClientID, Payments.CreditorID, Clients.FirstName, Clients.LastName, Clients.SSN, Clients.Address1, Clients.Address2, Clients.City,
Clients.State, Clients.ZIP, Clients.HomePhone, Clients.WorkPhone, Clients.OtherPhone, SUM(Payments.Amount)
FROM Payments INNER JOIN
Clients ON Payments.ClientID = Clients.ClientID
WHERE (Payments.CreditorID = 1015 or Payments.CreditorID= 1014)
GROUP BY Payments.CreditorID, Payments.ClientID, Clients.FirstName, Clients.LastName, Clients.SSN, Clients.Address1, Clients.Address2, Clients.City,
Clients.State, Clients.ZIP, Clients.HomePhone, Clients.WorkPhone, Clients.OtherPhone
works great, but some clients have creditor 1014 and 1015. I would like those totaled and only show once (I really don't need the creditorid column. just in there trying to help myself see what was going on.)