I have one contact in one of my account. I have the account id of that account. I am trying to get the email of the contact in my account with a soql query but it is returned blank :
contact em = [select name,email from contact where Accountid =:add];
To retrieve the email I then do em.mail. But that is empty.
add is my account id that I know