SyntaxFix
Write A Post
Hire A Developer
Questions
convert the NULL values with empty string by wrapping it in COALESCE
NULL
COALESCE
SELECT CONCAT(COALESCE(`affiliate_name`,''),'-',COALESCE(`model`,''),'-',COALESCE(`ip`,''),'-',COALESCE(`os_type`,''),'-',COALESCE(`os_version`,'')) AS device_name FROM devices