I have a SQL Server table that has project_id int,update_date datetime ,update_text varchar(max)
The table has many updates per project_id. I need to fetch the latest by update_date for all project_id values.
Example:
project_id update_date update_text 1 2017/01/01 Happy new year. 2 2017/01/01 Nice update 2 2017/02/14 Happy Valentine's 3 2016/12/25 Merry Christmas 3 2017/01/01 A New year is a good thing
The query should get:
project_id update_date update_text 1 2017/01/01 Happy new year. 2 2017/02/14 Happy Valentine's 3 2017/01/01 A New year is a good thing