select 
CSR_STRLEVEL1 as code,
CSR_DESC as description,
CSR_IMPORTANCE as importance,
CSR_MATERIALTYPE as materialtype
from R5CodeStructure
where CSR_STRLEVEL1 is NOT NULL and 
CSR_STRLEVEL2 is NULL
AND COALESCE(csr_notused, '-') = '-'
order by CSR_STRLEVEL1
