我有一张这样的桌子...
+---------+------------+------+-------+
| City | NamePeople | Age | Money |
+---------+------------+------+-------+
| Paris | John | 10 | 200 |
| London | Marie | 21 | 300 |
| Paris | Kevin | 50 | 250 |
| Paris | Julia | 45 | 150 |
+---------+------------+------+-------+
我需要一个带范围的结果,像这样
+---------------+------------+-----------------------+-------------------------+
| City | Sum(Money) | CountPeopleWithAge<30 | CountPeopleWithAge>30 |
+---------------+------------+-----------------------+-------------------------+
| Paris | 600 | 1 | 2 |
| London | 300 | 1 | 0 |
+---------------+------------+-----------------------+-------------------------+
如何使用 sql select 执行此操作?
谢谢。