79614168

Date: 2025-05-09 13:04:51
Score: 0.5
Natty:
Report link

Try with LEFT JOIN and WHERE with OR logic:

SELECT
    *
FROM table1 t1
LEFT OUTER JOIN table2 t2 ON t1.d = t2.id
LEFT JOIN table3 t3 ON t1.id = t3.id
WHERE t3.id IS NOT NULL OR t1.colx = '1'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Omprakash S