Given a table, Table, with columns N1, N2, N3, how can I get all combinations satisfying the condition N1 + N2 + N3 > 10?
For example, querying the table:
N1 N2 N3
Row1 1 5 4
Row2 4 4 3
Should give the result:
N1 N2 N3
Row1 4 5 4
Row2 4 4 4
Row3 4 4 3
Row3 4 5 3
How can I do this in T-SQL?