SELECT animal_id
FROM animal_ins
WHERE name IS NULL
ORDER BY animal_id ASC;
SELECT animal_id
FROM animal_ins
WHERE name IS NOT NULL
ORDER BY animal_id ASC;
SELECT animal_type, COALESCE(name, 'No name') name, sex_upon_intake
FROM animal_ins
ORDER BY animal_id
# CASE WHEN
SELECT ANIMAL_TYPE, IFNULL(NAME,'No name') AS NAME, SEX_UPON_INTAKE
FROM ANIMAL_INS
ORDER BY ANIMAL_ID ASC;