If i have table something like:
col1 col2 col3 col4
apple 1 35 1
apple 1 38 0
apple 2 27 1
orange 1 50 0
orange 2 51 1
I want to group by 1 an 2 column, and max col3. at the end i want get:
apple 1 38 0
apple 2 27 1
orange 1 50 0
orange 2 51 1
what is linq query to this?
Second attempt.
I have never used this syntax, but I think you can also do something like.