Table has columns for issue_date, part_num and date_received.
If an issue_date is null, I want to select issue_date of part_num + 1 (the next part number), and insert it in the issue_date column of the part with no issue date.
part_num is sequential.
What sql statement would select then insert the appropriate issue date?
Thank you in advance for any help.
Figured it out with a little self join statement.. thank you delete if you wish!!
Try this:
But, if the next part number also doesn’t have issue_date, this will ramain null’s in issue_date. To solve this problem you can change query to this one (if it’s suitable for your application):