There are two tables C and B.
They're connected by
C.id=B.cid
.
I need to find all the C.id
es where:
- None of the rows corresponding to cid
has is_true='Y'
I've tried various queries but can't wrap my head around any of them. This is one of my ideas.
select * from
C inner join B
on C.id=B.cid
where
-- loop all rows of B using B.cid
-- output if the row has is_true!='Y'

Asked by achhainsan
(159 rep)
Oct 31, 2023, 08:00 AM
Last activity: Oct 31, 2023, 12:40 PM
Last activity: Oct 31, 2023, 12:40 PM