Hello
rows where cat=2 do not have price and i want to fill it with previous value wich cat=1 for every item
Table named tb
id item_no price cat
1 I1 5 1
3 I1 2 the price must be 5
4 I1 2 the price must be 5 too
9 I1 2 1
10 I2 10 1
11 I2 5 1
15 I2 10 1
28 I2 2 the price must be 10
30 I2 2 1
32 I2 10 1
filled table must be like that:
id item_no price cat
1 I1 5 1
3 I1 5 2
4 I1 5 2
9 I1 2 1
10 I2 10 1
11 I2 5 1
15 I2 10 1
28 I2 10 2
30 I2 2 1
32 I2 10 1
How can i do that?