March 27, 2020 at 5:15 pm
Hi everyone,
I have a use case (below) for which I am considering multiple options. I am hoping to get some ideas, from the experts here that can help me get a better design. I am coming back to data warehousing after almost a decade, and I am more than rusty, so please excuse me if it comes across as a very trivial question.
My environment is SQL 2016. Enterprise Edition.
Use Case
I am going to develop a report showing trends of plant work order history, and how they trend over the past 6 to 24 months, for example. A work order may stay open for over 6 months, and may receive some updates to its target completion date, requested finish date, status, and responsible person.
Requirements
Options
Thanks,
Kaz
March 28, 2020 at 2:41 pm
I'm thinking that Type 6 SCD's may be better. With that, the use of Temporal Tables may be just what the doctor ordered here with the understanding that they won't auto-magically log the ORIGINAL_LOGIN() to track who made changes (a serious fault with Temporal Tables, IMHO). Using Temporal Tables as a model for a homegrown solution can work out very well.
Because of all the problems they had when MERGE first came out and some ongoing problems that they say is fixed now, I'm loath to use it. The way they've implemented it, it doesn't seem to have any advantages over a good ol' fashioned "UPSERT" (conditional Insert/Update) other than possibly being a bit shorter to write.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply