Changes between Version 2 and Version 3 of ImportantUseCase3


Ignore:
Timestamp:
01/21/22 22:18:18 (2 years ago)
Author:
191151
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ImportantUseCase3

    v2 v3  
    1919
    2020{{{
    21 
     21select u.email, u.username, u.full_name, u.profile_picture, u.type,
     22        coalesce (a.*) as artist,
     23        coalesce (o.*) as organizer,
     24        coalesce (m.*) as manager
     25        from project.users u
     26        left join artists a
     27                on u.id = a.user_id
     28                and u."type" = 'ARTIST'::project."user_type"
     29        left join organizers o
     30                on u.id = o.user_id
     31                and u."type" = 'ORGANIZER'::project."user_type"
     32        left join managers m
     33                on u.id = m.user_id
     34                and u."type" = 'MANAGER'::project."user_type"
     35        where
     36                u.email = 'test_artist@mail.com'
     37                and u.password = 'password';
    2238}}}
    2339