I am writing a trigger and i need 2 tables. new/old which already exist and p for the parent. However p may be null so if i do a
select new.a, new.b, ifnull(p.name, new.c) from p
i'll get 0 results. if p is null. So how do i solve this? can i select from null or something else and left join p and use ifnull? i am not sure how to do this.