From 373d5ebe364dfc444301af7d79464c91b61310a6 Mon Sep 17 00:00:00 2001 From: luxin Date: Fri, 8 Jul 2022 14:24:11 +0800 Subject: [PATCH] bug fixed for exercises --- .../2. \346\261\202\345\222\214/sum.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c8577bd..ae6ee7d 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 -- GitLab