I've got a table like that,
id PID VID Type PriceA PriceB
41 297 2 128 70.000 80.000
42 297 3 256 90.000 100.000
43 297 4 300 110.000 120.000
44 297 5 400 130.000 140.000
45 294 2 128 10.000 50.000
46 294 3 256 20.000 60.000
47 294 4 300 30.000 70.000
48 294 5 400 40.000 80.000
49 294 6 450 50.000 85.000
50 294 7 470 45.000 75.000
What I want to do is a query with PID parameter and get a result like that
PID | 128 | 256 | 300 | 400
297 | 70.000 / 80.0000 | 90.000 / 100.000 | 110.000 / 120.000 | 130.000 / 140.000
I have tried several different options pivot table subquery etc., but I could not make it.