I have a table with, let's say, RecordID
(PK), Name
, Date
and FavoriteMovie
. Each day I capture everyone's name and their favorite movie, and append rows if they're different than the LATEST record for that given person. What I need is a T-SQL query to tell me:
- What is each person's favorite movie as of 5/15/2022?
Expected results: