https://dwyerlastname.pages.dev/posts/max-function-sql/
SQL Server 2022 Max Function Sql