Changes between Initial Version and Version 1 of UseCase0012


Ignore:
Timestamp:
01/10/26 18:03:25 (10 days ago)
Author:
193284
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase0012

    v1 v1  
     1= Use-case 0012 - View Event Attendance Summary =
     2
     3'''Initiating actor:''' Wedding Organizer (Assistant)
     4
     5'''Other actors:''' Bride / Groom (Wedding owner)
     6
     7== Description ==
     8The organizer or wedding owner views attendance list and statistics per event, including number of attendees per role/table and overall status.
     9
     10== Scenario ==
     111. The user selects an event.
     122. The system lists attendance details for all guests.
     13
     14{{{
     15SET search_path TO project;
     16
     17SELECT a.attendance_id, g.first_name, g.last_name, a.status, a.table_number, a.role
     18FROM attendance a
     19JOIN guest g ON a.guest_id = g.guest_id
     20WHERE a.event_id = :event_id
     21ORDER BY a.table_number NULLS LAST, g.last_name, g.first_name;
     22}}}
     23
     243. The system shows a summary (counts by status).
     25
     26{{{
     27SET search_path TO project;
     28
     29SELECT status, COUNT(*) AS total
     30FROM attendance
     31WHERE event_id = :event_id
     32GROUP BY status
     33ORDER BY total DESC;
     34}}}
     35
     364. The system can show guests per table (optional view).
     37
     38{{{
     39SET search_path TO project;
     40
     41SELECT table_number, COUNT(*) AS guests_on_table
     42FROM attendance
     43WHERE event_id = :event_id AND table_number IS NOT NULL
     44GROUP BY table_number
     45ORDER BY table_number;
     46}}}