Skip to content
Advertisement

Store Pricing Combinations and Sums w/ SQL

I have a table that looks something like

and I would like to create all possible combinations with the sum of the prices, including the unique values to create something like

what would be the quick and dirtiest way of accomplishing this?

Advertisement

Answer

Use three joins:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement