M
maella
Hi, for example I've got a table like this:
Id User Date Amount
1 Name1 # # 1000
2 Name2 # # 600
3 Name3 # # 300
4 Name1 # # 500
First I've got a query for choosing the date, all ok, and then I would like
another query based on the first one, to get the total amount of each user.
Like this
Id User TotalAmount
1 Name1 1500
2 Name2 600
3 Name3 500
Is this possible? I've used de function DSum on the secong query and always
get the following results:
Id User TotalAmount
1 Name1 2600
2 Name2 2600
3 Name3 2600
4 Name1 2600
Thanks
Id User Date Amount
1 Name1 # # 1000
2 Name2 # # 600
3 Name3 # # 300
4 Name1 # # 500
First I've got a query for choosing the date, all ok, and then I would like
another query based on the first one, to get the total amount of each user.
Like this
Id User TotalAmount
1 Name1 1500
2 Name2 600
3 Name3 500
Is this possible? I've used de function DSum on the secong query and always
get the following results:
Id User TotalAmount
1 Name1 2600
2 Name2 2600
3 Name3 2600
4 Name1 2600
Thanks