I have two tables bets and users.
bets columns
- tickets (json)
- draw_date
- user_id
I would like to get all tickets from users of a specific draw_date.
Example result:
[
1 => [283983, 389239, 484843],
2 => [122343, 332344]
]
1, 2 will be the user ids. Tickets array will contain tickets from all bets of a individual user.
2
Answers