Hello,
I would appreciate your help in writting a SQL that would select from the client ID (Client ID is not unique) and sum the amount column for that client. For Example the resulting query for client ID (A) would be $600 (500+100). The resulting query for client ID (B) would be $20.
The resulting query should display the client ID and the total $ amount for that client.
Client ID Purchase $Amount
A Apples $500
A Oranges $100
B Apples $20
C Oranges $80
D Apples $60
Thank you
I would appreciate your help in writting a SQL that would select from the client ID (Client ID is not unique) and sum the amount column for that client. For Example the resulting query for client ID (A) would be $600 (500+100). The resulting query for client ID (B) would be $20.
The resulting query should display the client ID and the total $ amount for that client.
Client ID Purchase $Amount
A Apples $500
A Oranges $100
B Apples $20
C Oranges $80
D Apples $60
Thank you