EdwardSalas
Technical User
Afternoon all,
I've been so far removed from SQL programming that, I know this is possible, however I cannot figure out how to do it. Here is the sample Table :
Date - Code - Bill - UnitSold
10/3/2005 123456 4.99 100
10/10/2005 123456 4.99 200
10/17/2005 123456 300
10/25/2005 123456 5.99 400
On 10/17, there was no Bill of the respective products, hence a null in its stead. How can, assuming I hit a null in a row, look at the previous date (in this case 10/10) and fill the null with this amount (in this case 4.99)?
Many thanks!
Edward
I've been so far removed from SQL programming that, I know this is possible, however I cannot figure out how to do it. Here is the sample Table :
Date - Code - Bill - UnitSold
10/3/2005 123456 4.99 100
10/10/2005 123456 4.99 200
10/17/2005 123456 300
10/25/2005 123456 5.99 400
On 10/17, there was no Bill of the respective products, hence a null in its stead. How can, assuming I hit a null in a row, look at the previous date (in this case 10/10) and fill the null with this amount (in this case 4.99)?
Many thanks!
Edward