Is it a sum-free set?

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @ table(a int)
INSERT @ values(1),(5),(7),(12)

SELECT min(iif(a.a+b.a<>c.a,1,0))FROM @ a,@ b,@ c

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results