This is my table
id | c_id | number |
---|---|---|
3444 | 34 | 3377752 |
3446 | 35 | 3473747 |
3447 | 35 | 3532061 |
3454 | 37 | 3379243 |
3455 | 38 | 3464467 |
3456 | 38 | 3377493 |
I want to create a table which is show me not repeated value in a c_id column (repeat just 1 time). the result should be:
id | c_id | number |
---|---|---|
3444 | 34 | 3377752 |
3454 | 37 | 3379243 |
GROUP BY c_id, number
HAVING COUNT(cart_id) = 1
i tried this but it shows me repeated value again
2
Answers
You can do it as follows :
Check it here : https://dbfiddle.uk/RlxxQ_05