I want to combine multiple rows into as few rows as possible by removing nulls
Advertisement
Answer
For your sample data and results you can use:
x
select column1, column2, min(column3), min(column4), . . .,
column8
from t
group by column1, column2, column8;