sql server - Merge Rows of table -
want merge rows 2 id need merge columns docstatus , release date skipping empty values.

basically can use group aggregate function. below
select id, somecol, max(another_column), min(yet_another_column) yourtable group id, somecol
Comments
Post a Comment