From 1940e8936d5409d2675c5e56efbcf400e546d254 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Tue, 14 Apr 2026 23:19:36 +0700 Subject: [PATCH] =?UTF-8?q?tweak:=20Long=20An=20best-block=20preset=20?= =?UTF-8?q?=E2=86=92=20top=2010=20instead=20of=20top=20100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2017/src/components/custom-query.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2017/src/components/custom-query.jsx b/2017/src/components/custom-query.jsx index 6c6db80..780ead0 100644 --- a/2017/src/components/custom-query.jsx +++ b/2017/src/components/custom-query.jsx @@ -57,7 +57,7 @@ ORDER BY tong_khoi_a DESC LIMIT 10`, // UNION ALL; ROW_NUMBER picks each student's #1 block; the outer // SELECT ranks across students. Result includes the winning block // code so the user sees which combination produced the score. - label: "Top 100 điểm khối cao nhất - Long An", + label: "Top 10 điểm khối cao nhất - Long An", sql: `WITH per_block AS ( SELECT so_bao_danh, ho_ten, ngay_sinh, 'A00' k, toan+vat_ly+hoa_hoc s FROM student WHERE so_bao_danh LIKE '49%' UNION ALL SELECT so_bao_danh, ho_ten, ngay_sinh, 'A01', toan+vat_ly+tieng_anh FROM student WHERE so_bao_danh LIKE '49%' @@ -115,7 +115,7 @@ ranked AS ( ) SELECT so_bao_danh, ho_ten, ngay_sinh, k AS khoi, ROUND(s, 2) AS diem FROM ranked WHERE rn = 1 -ORDER BY diem DESC LIMIT 100`, +ORDER BY diem DESC LIMIT 10`, }, ], },