SQL filter by Sum
How could I filter a set of elements by its sum?, suppose I have:
id
1
2
3
4
Is there a clause I can use like:
select * from numbers where sum = 6
Just to note, that query won't do that, it is an example to explain more
or less what I mean.
And this clause would return 1, 2 and 3?
No comments:
Post a Comment