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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -