Below is my query
SELECT * FROM companystatus where company_name='Fifth Borrower' ;
I want the not null values in single row for one borrower.
Expected output
Aggregation usually helps in such requirements, e.g.
select
company_code,
company_name,
max(c2015),
max(c2016),
max(c2017)
from companystatus
where company_name = 'Fifth Borrower'
group by company_code,
company_name