sql server - Merge Rows of table -


want merge rows 2 id need merge columns docstatus , release date skipping empty values.

enter image description here

basically can use group aggregate function. below

select   id, somecol, max(another_column), min(yet_another_column)   yourtable group id, somecol 

Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -