I want to extract colums that different in fruit colum but have a same value in fruit_id colum. how's the query? please help
| fruit | fruit_id |
|---|---|
| apple | a1 |
| banana | b1 |
| citrus | c1 |
| manggo | a1 |
| orange | c1 |
I expected the result is :
| fruit | fruit_id |
|---|---|
| apple | a1 |
| manggo | a1 |
| citrus | c1 |
| orange | c1 |