Hello,
My data is as follows:
ORDER_ID CLIENT_ID DATE VALUE
1881 51 2010-07-19 100.17
1882 50 2010-07-19 100.17
2754 50 2010-07-25 135.27
2756 50 2010-07-25 100.28
5514 50 2010-07-27 121.76
5515 50 2010-07-28 109.59
5516 50 2010-07-27 135.29
5517 50 2010-07-28 121.77
5518 50 2010-07-31 123.15
5519 50 2010-07-31 123.16
5520 50 2010-07-31 109.62
6079 51 2010-07-31 100.33
7372 50 2010-07-25 100.27
What I want is to specify an initial date, for example, '2010-07-27', to filter only records at or after this date in the WHERE clause; the query should get the latest order from client 50 (order 1881) and client 51 (order 5516) and sum them together. I know it's simple and I tried in some different ways but couldn't find the right path. I guess I'm thinking narrow today, so I'm turning to you for help.
Thank you.