Skip
Arish's avatar

145. Practice - IFNULL


Exercise: Default Email

Replace NULL email with 'No Email'.

Solution

sql
1SELECT name, IFNULL(email, 'No Email') AS email
2FROM students;