By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
9 rows affected
| ID | Fruit | Apple |
|---|---|---|
| A | apple | Yes |
| A | banana | Yes |
| A | grapes | Yes |
| B | orange | Yes |
| B | apple | Yes |
| B | grapes | Yes |
| C | grapes | No |
| C | orange | No |
| C | banana | No |
| ID | Fruit | Apple |
|---|---|---|
| A | apple | Yes |
| A | banana | Yes |
| A | grapes | Yes |
| B | orange | Yes |
| B | apple | Yes |
| B | grapes | Yes |
| C | grapes | No |
| C | orange | No |
| C | banana | No |
| ID | Fruit | Apple |
|---|---|---|
| A | apple | Yes |
| A | banana | Yes |
| A | grapes | Yes |
| B | orange | Yes |
| B | apple | Yes |
| B | grapes | Yes |
| C | grapes | No |
| C | orange | No |
| C | banana | No |