I have spent the last five hours trying to get every product option combination from a table but I\'m totally stuck now. I have a table with data like (simplified):
select option_id, value_id from assigned_options group by option_id, value_id order by option_id, value_id