diff --git "a/data/2.MySQL\344\270\255\351\230\266/4.\350\201\232\345\220\210\345\222\214\345\210\206\347\273\204/2. \346\261\202\345\222\214/sum.md" "b/data/2.MySQL\344\270\255\351\230\266/4.\350\201\232\345\220\210\345\222\214\345\210\206\347\273\204/2. \346\261\202\345\222\214/sum.md" index c8577bd20cdd450231d13d5f91401684e66f2ce8..ae6ee7dea93f73be771acd693c0e5f899428ae6f 100644 --- "a/data/2.MySQL\344\270\255\351\230\266/4.\350\201\232\345\220\210\345\222\214\345\210\206\347\273\204/2. \346\261\202\345\222\214/sum.md" +++ "b/data/2.MySQL\344\270\255\351\230\266/4.\350\201\232\345\220\210\345\222\214\345\210\206\347\273\204/2. \346\261\202\345\222\214/sum.md" @@ -47,5 +47,5 @@ select sum(total) from orders group by deal having unit_price > 1000; ### C ```sql -select sum(total) from orders having deal and unit_price > 1000; +select sum(total) from orders order by deal and unit_price > 1000; ``` \ No newline at end of file