Hi,I have a simple query that return a name and average.My problem i want if te.strNote is NULL then show NULLHere my query :SELECT (SELECT stdlastn FROM Bulletin.dbo.tblEleves WHERE stdnumber = te.intElevesId) as strLastName, (SELECT stdfirstn FROM Bulletin.dbo.tblEleves WHERE stdnumber = te.intElevesId) as strFirstName, (cast(replace(te.strNote,',','.') as float) / tee.intPonderation * 100)from tblM2EvaluationElementReponse as te INNER JOIN tblM2EvaluationElement as tee ON tee.intEvaluationElementId = te.intEvaluationElementId WHERE tee.intEvaluationId = 44 ORDER BY tee.intEvaluationElementId,strLastName
If it null it will retun 0 because of this line(cast(replace(te.strNote,',','.') as float) / tee.intPonderation * 100)But i don't know how to fix it!It will return something like this:Name strNoteLuc 95Paul 85John 0Kev 0But i want something like thisName strNoteLuc 95Paul 85John NULLKev 0For Kev it ok to show 0 because he did zero on is test but John did get a Score so i want him to show NULL or nothing.Tks in advance!Luc