I have a table like this
id userid cc cop
1 23 0.5 0.9
2 23 0.5 0.9
3 29 2.6 9.4
4 75 4.8 8.9
5 29 2.6 9.4
6 45 6.7 9.0
I want all the roles such that cc and cop are distinct 1.e the result is supposed to be
something like this
id userid cc cop
1 23 0.5 0.9
3 29 2.6 9.4
4 75 4.8 8.9
6 45 6.7 9.0
i want of any rows that has cc,cop,userid the same only one should be selected
pseudocode: select * from table where userid,cc,cop are distinct from the result.
Maybe you could try something like this
It will select the first id of each occurence.