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

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

Why does PHP consider 0 to be equal to a string? -

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