dql jika atau ifnull

case when c.type_id = 9 then c.name else c.lastname end as name
Rich Raccoon