I was writing some database code based on a weather forecast issued every day. Each new set of data has a total of 89 hours; 24 hours of completely new data to be appended to the end of the datbase table and the rest data needs to be inserted.
Here’s a link to how I did it.