Try this out ...
SELECT a.*
FROM table1 a
WHERE 0 = ( SELECT COUNT(*) FROM table1 b
WHERE a.col_b = b.col_b
AND a.col_c = b.col_c + 1 )
AND a.col_a > 1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.