By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| RECIPES_ID | INGREDIENTS_ID |
|---|---|
| 1 | 111 |
| 1 | 222 |
| 2 | 222 |
| 3 | 222 |
| 3 | 333 |
| 4 | 111 |
| 4 | 222 |
| 4 | 333 |
| 5 | 333 |
| 5 | 444 |
| 6 | 111 |
| recipes_id |
|---|
| 1 |
| 2 |
| 6 |
Warning: Null value is eliminated by an aggregate or other SET operation.