From c5fb86b9651d3ca4be459a62ac160b3ea4cecff2 Mon Sep 17 00:00:00 2001 From: Lee Gaupeng <471045913@qq.com> Date: Sat, 13 Apr 2019 23:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=20=E7=BB=8F?= =?UTF-8?q?=E5=85=B8=E7=BB=83=E4=B9=A0=E9=A2=98.sql=20=E7=AC=AC19=E9=A2=98?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/sql 经典练习题.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/other/sql 经典练习题.sql b/other/sql 经典练习题.sql index a4b4f964..da1ac09b 100644 --- a/other/sql 经典练习题.sql +++ b/other/sql 经典练习题.sql @@ -203,10 +203,10 @@ ORDER BY RANK; -- 19、查询选修“3-105”课程的成绩高于“109”号同学成绩的所有同学的记录。 select * from SCORE -where CNO = '3-105' and DEGREE > ALL ( +where CNO = '3-105' and DEGREE > ( select DEGREE from SCORE - where SNO = '109' + where SNO = '109' and CNO = '3-105' ); set @@global.sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';