I want an SQL statement to get the row with a minimum value to the "C4".
Consider the table:
I need something like this
I need to group N2 and N3 because the value of C2 and C3 is the same, I can select any value of C4 to group, in this case we can take 10 or 20, or in C1 with same N4 and N5. Can take 12 or 14.
Not need the maximum to grout, I need one value with C2 and C3 are the same. C1 is a Id this can be 1,2,3.. etc
Thanks for any help!