0

I have an MySQL table "products" that looks like this:

Product | Price list | Price
1 | 1 | $10.00
1 | 2 | $12.30
1 | 3 | $12.50
1 | 4 | $12.80

and I need a new table "prices" that looks like this:

Product | Price1 | Price2 | Price3 | Price4
1 | $10.00 | $12.30 | $12.50 | $12.80

Any idea how to go about it? I need good performance for a table of many records. I would like to do it with Mysql views.

Thanks in advance for your help.

0 Answers0