I am looking for building a query to replace null value with previous available values.can somebody help.Here is the table currently looking like
11/30/2015
I think this should work, I am assuming the table and column names since you have not provided these, also assuming id is the column based on which you are ordering the rows
UPDATE table1 T
SET T.date1 = (
SELECT MAX(T2.date)
FROM table1 T2
WHERE T2.date IS NOT NULL
AND T2.id <= T.id
)
WHERE T.date1 IS NULL