I have a table like this:
Id GroupId StdId Active
---------------------------
1 1 1 true
2 1 2 false
3 1 1 false
4 1 1 false
5 1 1 true
6 1 2 true
I want to delete duplicate row but if Active have true/false value keep true value and delete false value.
For example I want to this list
Id GroupId StdId Active
---------------------------
1 1 1 true
6 1 2 true