Hi Friends,
I have below scenario
id | Name | Lname |
1 | abc | abc1 |
2 | NULL | abc1 |
3 | pqr | pqr1 |
4 | NULL | pqr1 |
5 | NULL | pqr1 |
could you please provide a query to get values like below
id | Name | Lname |
1 | abc | abc1 |
2 | abc | abc1 |
3 | pqr | pqr1 |
4 | pqr | pqr1 |
5 | pqr | pqr1 |
Which mean that, if the value is NULL then it should get the value of the record which is above it,
There can be more NULL values availabe consiquently.
Thanks in advance
parixit