Changes between Version 1 and Version 2 of UseCase0001
- Timestamp:
- 09/02/26 20:28:39 (4 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase0001
v1 v2 3 3 '''Initiating actor:''' Board Member 4 4 5 A Board Member views the stored data for a selected BEST Skopje member. The goal is to see the member's profile, current membership stage, mentor, current organisational function, previous membership stages, and applications.5 A Board Member views the stored data for a selected BEST Skopje member. In this scenario, the Board Member is acting as the HR Coordinator. The goal is to see the member's profile, current membership stage, mentor, current organisational function, previous membership stages, and applications. 6 6 7 7 == Scenario == … … 17 17 s.last_name, 18 18 s.faculty, 19 hs.ms_name AS current_membership_stage19 ms.ms_name AS current_membership_stage 20 20 FROM students s 21 21 JOIN members m … … 24 24 ON hs.student_index = s.student_index 25 25 AND hs.valid_to IS NULL 26 LEFT JOIN membership_stages ms 27 ON ms.ms_id = hs.ms_id 26 28 WHERE lower(s.first_name) LIKE lower('%Dario%') 27 29 OR lower(s.last_name) LIKE lower('%Dario%') … … 43 45 s.email, 44 46 s.phone_number, 45 hs.ms_name AS current_membership_stage,47 ms.ms_name AS current_membership_stage, 46 48 hs.valid_from AS current_stage_valid_from, 47 49 ym.mentor_index, 48 50 mentor.first_name AS mentor_first_name, 49 51 mentor.last_name AS mentor_last_name, 50 iof.of_title AS current_organizational_function,51 iof.mandate52 ofn.of_title AS current_organizational_function, 53 fm.mandate_year 52 54 FROM students s 53 55 JOIN members m … … 56 58 ON hs.student_index = s.student_index 57 59 AND hs.valid_to IS NULL 60 LEFT JOIN membership_stages ms 61 ON ms.ms_id = hs.ms_id 58 62 LEFT JOIN young_members ym 59 63 ON ym.student_index = s.student_index 60 64 LEFT JOIN students mentor 61 65 ON mentor.student_index = ym.mentor_index 62 LEFT JOIN is_organizational_function iof 63 ON iof.student_index = s.student_index 64 AND iof.mandate = '2025/2026' 66 LEFT JOIN function_mandates fm 67 ON fm.student_index = s.student_index 68 AND fm.mandate_year = 2025 69 LEFT JOIN organizational_functions ofn 70 ON ofn.of_id = fm.of_id 65 71 WHERE s.student_index = 230024; 66 72 }}} … … 70 76 {{{#!sql 71 77 SELECT 72 hs.ms_name,78 ms.ms_name, 73 79 hs.valid_from, 74 80 hs.valid_to 75 81 FROM has_stage hs 82 JOIN membership_stages ms 83 ON ms.ms_id = hs.ms_id 76 84 WHERE hs.student_index = 230024 77 85 ORDER BY hs.valid_from; … … 83 91 SELECT 84 92 a.application_id, 85 a.et_name,86 a.event_title,87 a.event_start_time,88 a.function_name,93 et.et_name, 94 ee.ee_title, 95 ee.ee_start_time, 96 eft.eft_name, 89 97 a.application_type, 90 98 a.application_status 91 99 FROM applications a 100 JOIN event_editions ee 101 ON ee.ee_id = a.ee_id 102 JOIN event_types et 103 ON et.et_id = ee.et_id 104 LEFT JOIN event_functions ef 105 ON ef.ee_id = a.ee_id 106 AND ef.ef_no = a.ef_no 107 LEFT JOIN event_function_types eft 108 ON eft.eft_id = ef.eft_id 92 109 WHERE a.student_index = 230024 93 ORDER BY a.event_start_time, a.application_id;110 ORDER BY ee.ee_start_time, a.application_id; 94 111 }}}
