tsql - SQL Server (2012): filling up NULL colums with lower filled values -


i wondering if following transformation possible:

i have 2 resultsets combined in union. have 1 column share.

group    value#1 value#2         red     null        blue    null        green   null        null    sweet b        red     null b        null    sweet b        null    sour 

can result transformed within group (a, b) every non nullable value in column value#2 shifted first available spot?

wanted result:

group    value#1 value#2         red     sweet        blue    null        green   null b        red     sweet b        null    sour 

best regards,

rick


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -