I\'m running a really simple query, however for some of the results the value in one field is null. How can I set that value to \"a string\" if its value is null?
SELECT regname,
regemail,
regphone,
regorg,
regcountry,
datereg,
CASE
WHEN website IS NULL THEN 'no website'
ELSE website
END AS WebSite
FROM regtakepart
WHERE reject IS NULL
or COALESCE:
....
COALESCE(website, 'no website') AS WebSite
....