I have a sql query with a join and NOT EXITS as follows
select name, email, nickname, lastname, firstname, phone
from a join b on a.user_id=b.id and a.s_id = 2 where NOT EXISTS
(
select c.team_id from c
where c.s_id = 1
and c.round_id = 2
and a.id = c.user_id
);
I want to convert it into Ecto query… Can some one help me with it?