I need to count for which store and how many this store has the lowest price for each product?
For example result - Shop1=0, Shop2=1, Shop3=2
Prod. Shop Price
Apple Shop1 5
Apple Shop2 3
Apple Shop3 4
Pears Shop1 8
Pears Shop2 7
Pears Shop3 6
Lemon Shop1 2
Lemon Shop2 3
Lemon Shop3 1
For example result - Shop1=0, Shop2=1, Shop3=2
Prod. Shop Price
Apple Shop1 5
Apple Shop2 3
Apple Shop3 4
Pears Shop1 8
Pears Shop2 7
Pears Shop3 6
Lemon Shop1 2
Lemon Shop2 3
Lemon Shop3 1
Last edited: