79296368

Date: 2024-12-20 06:41:25
Score: 2
Natty:
Report link

thanks for the suggestions @MT0 and @samhita both are very good although they didn't work in my case as expected, I suspect due to have multiple tables connected to retrieve the data.

In the end what worked was using a simple not in which filtered out all items that have condition B and only selected what's left, for example:

Select
column1
column2
column3

from 
table.a,
table.b,
table.c
and
a.field1 not in 
(select 
a.field1

from
from 
table.a,
table.b,
table.c
where
a.field1.=b.field2
and c.field1=b.field1
and
condition like 'B'
)
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @MT0
  • User mentioned (0): @samhita
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Aidas Dem