I am using mysql toad, i have a table which is empty and i am trying to return a string value if no records are found i have tried the under mention queries however none works, only an empty row is returned.
Query
select coalesce(stDate,'0')as StDate from tblStudents where studentNumber = 12213123;
select IFNULL(stDate,'0')as StDate from tblStudents where studentNumber = 12213123;
The results are only empty strings the column stDate is of type varchar.