Changes between Version 2 and Version 3 of UseCase0005


Ignore:
Timestamp:
09/02/26 20:32:36 (4 days ago)
Author:
236024
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase0005

    v2 v3  
    991. The Board Member opens the create event edition page.
    1010
    11 2. The application lists event types and locations.
     112. The application lists event types, event function types and locations.
    1212
    1313{{{#!sql
    14 SELECT et_id, et_name
     14SELECT
     15    et_id,
     16    et_name
    1517FROM event_types
    1618ORDER BY et_name;
    1719
    18 SELECT l_id, l_name
     20SELECT
     21    eft_id,
     22    eft_name
     23FROM event_function_types
     24ORDER BY eft_name;
     25
     26SELECT
     27    l_id,
     28    l_name
    1929FROM locations
    2030ORDER BY l_name;
    2131}}}
    2232
    23 3. The Board Member enters Job Fair 2027 with the selected event type and dates.
     333. The Board Member enters Job Fair 2027 with the relevant information.
    2434
    25354. The application stores the event edition.
     
    5363
    5464{{{#!sql
    55 INSERT INTO event_functions (ee_id, ef_no, ef_name) VALUES
    56     (1001, 1, 'Main Organiser 1'),
    57     (1001, 2, 'Main Organiser 2'),
    58     (1001, 3, 'Corporate Relations Responsible 1'),
    59     (1001, 4, 'Corporate Relations Responsible 2'),
    60     (1001, 5, 'Logistics Responsible'),
    61     (1001, 6, 'PR Responsible'),
    62     (1001, 7, 'FR Responsible'),
    63     (1001, 8, 'IT Responsible'),
    64     (1001, 9, 'Design Responsible');
     65INSERT INTO event_functions (
     66    ee_id,
     67    ef_no,
     68    eft_id
     69)
     70VALUES
     71    (1001, 1, 1),
     72    (1001, 2, 1),
     73    (1001, 3, 2),
     74    (1001, 4, 2),
     75    (1001, 5, 3),
     76    (1001, 6, 4),
     77    (1001, 7, 5),
     78    (1001, 8, 6),
     79    (1001, 9, 7);
    6580}}}
    6681
     
    88103ORDER BY l.l_name;
    89104
    90 SELECT ef_no, ef_name
    91 FROM event_functions
    92 WHERE ee_id = 1001
    93 ORDER BY ef_no;
     105SELECT
     106    ef.ef_no,
     107    eft.eft_name
     108FROM event_functions ef
     109JOIN event_function_types eft
     110    ON eft.eft_id = ef.eft_id
     111WHERE ef.ee_id = 1001
     112ORDER BY ef.ef_no;
    94113}}}