From 3948b8fef2bb87cd399b426c205d30b1dc45150d Mon Sep 17 00:00:00 2001 From: esoe Date: Mon, 6 Feb 2023 17:00:58 +0300 Subject: [PATCH] qq --- src/main/sql/script.sql | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/sql/script.sql b/src/main/sql/script.sql index 547e6d1..7fc412c 100644 --- a/src/main/sql/script.sql +++ b/src/main/sql/script.sql @@ -1,11 +1,8 @@ --- пользователи SELECT id, username, email FROM mdl_user --- опросы SELECT id, name FROM mdl_quiz; --- попытки /общие данные SELECT id, quiz, userid, attempt, timestart, timefinish, sumgrades FROM mdl_quiz_attempts; --- отчет +-- для отчета --> WITH pure AS ( SELECT mqa.id as pure_id, @@ -23,7 +20,7 @@ WITH pure AS ( FROM mdl_quiz_attempts as mqa LEFT JOIN mdl_quiz as mq on mqa.quiz=mq.id LEFT JOIN mdl_user as mu on mqa.userid=mu.id - WHERE mqa.userid > 3849 + WHERE mqa.userid >= 4114 ) SELECT pure_id,