total_registered.busyness Y Normal 0 N 1000 100 - 2024/08/02 11:56:22.507 - 2024/08/02 11:56:22.507 Get variables 2 2 Select values 2 2 Y Table input (person_registry) РФ/все/на учете Get variables 2 2 Y Select values 2 2 Insert / update (total_registered.busyness) Y Execute SQL script Table input (person_registry) РФ/все/на учете Y Execute SQL script ExecSql N 1 none ervu-dashboard N N Y N N DELETE FROM total_registered.busyness WHERE recording_date = current_date AND schema = 'Ministry' AND recruitment_id = '${REG_ID}' 112 480 Get variables 2 2 GetVariable Y 1 none -1 REG_ID -1 none String -1 VK_ARRAY -1 none String 736 480 Insert / update (total_registered.busyness) InsertUpdate Y 1 none 100 ervu-dashboard = recruitment_id REG_ID = "all_M_W" gender = registered registered = schema schema = convicts convicts total_registered busyness
study study Y work work Y study_percent study_percent Y work_percent work_percent Y recruitment_id recruitment_id N registered registered N "all_M_W" gender N not_work no_info Y not_work_percent no_info_percent Y busyness total_people Y schema schema N convicts convicts N
Y 1200 480
Select values 2 2 SelectValues Y 1 none N REG_ID REG_ID String -2 -2 false false VK_ARRAY VK_ARRAY String -2 -2 false false 944 480 Table input (person_registry) РФ/все/на учете TableInput Y 1 none ervu-dashboard N 0 SELECT COALESCE(SUM(study), 0) study, COALESCE(SUM(work), 0) work, COALESCE( CASE WHEN SUM(busyness) > 0 THEN ROUND((SUM(study) / SUM(busyness) * 100), 2) ELSE 0 END, 0 ) study_percent, COALESCE( CASE WHEN SUM(busyness) > 0 THEN ROUND((SUM(work) / SUM(busyness) * 100), 2) ELSE 0 END, 0 ) work_percent, COALESCE(SUM(not_work), 0) no_info, COALESCE( CASE WHEN SUM(busyness) > 0 THEN ROUND((SUM(not_work) / SUM(busyness) * 100), 2) ELSE 0 END, 0 ) no_info_percent, COALESCE(SUM(busyness), 0) total_people, '${REG_ID}' AS recruitment_id, "all_M_W" AS gender, registered, convicts, 'Ministry' AS schema FROM total_registered.busyness WHERE recruitment_id = ANY ('${VK_ARRAY}') AND schema = 'Region' AND recording_date = CURRENT_DATE GROUP BY "all_M_W", registered, convicts; Y 448 480