strongduanmu commented on issue #21388:
URL:
https://github.com/apache/shardingsphere/issues/21388#issuecomment-1272431639
Following is the latest result:
```
sharding_db=> SELECT MAX(p.price) AS max_price, MIN(p.price) AS min_price,
SUM(p.price) AS sum_price, AVG(p.price) AS avg_price, COUNT(1) AS count FROM
t_order o INNER JOIN t_order_item i ON o.order_id = i.order_id INNER JOIN
t_product p ON i.product_id = p.product_id GROUP BY o.order_id HAVING
SUM(p.price) > 10000;
max_price | min_price | sum_price | avg_price | count
-----------+-----------+-----------+-----------+-------
6666 | 6666 | 13332 | 6666 | 2
8200 | 8200 | 16400 | 8200 | 2
6666 | 6666 | 13332 | 6666 | 2
8200 | 8200 | 16400 | 8200 | 2
324600 | 324600 | 649200 | 324600 | 2
324600 | 324600 | 649200 | 324600 | 2
9000 | 9000 | 18000 | 9000 | 2
9000 | 9000 | 18000 | 9000 | 2
(8 rows)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]