This website uses cookies to ensure you get the best experience.
Learn more.
Customer versions contain BusinessKey, UpdatedAt, and a unique LoadID. You need the latest row per BusinessKey with deterministic tie-breaking. Which design fits?
Published
- ROW_NUMBER partitioned by BusinessKey ordered by UpdatedAt DESC, LoadID DESC
- An unordered TOP 1 over the whole table
- MAX(UpdatedAt) without joining back to a row
- SELECT DISTINCT BusinessKey, all other fields
Comments — 0
Sign in to comment